Quantity Calculus for R Vectors

Integration of the 'units' and 'errors' packages for a complete quantity calculus system for R vectors, matrices and arrays, with automatic propagation, conversion, derivation and simplification of magnitudes and uncertainties. Documentation about 'units' and 'errors' is provided in the papers by Pebesma, Mailund & Hiebert (2016, ) and by Ucar, Pebesma & Azcorra (2018, ), included in those packages as vignettes; see 'citation("quantities")' for details.


Build Status Coverage Status CRAN_Status_Badge Downloads

The quantities package provides integration of the 'units' and 'errors' packages for a complete quantity calculus system for R vectors, matrices and arrays, with automatic propagation, conversion, derivation and simplification of magnitudes and uncertainties.

Documentation

Blog posts:

  1. Quantities for R -- First working prototype, Mar 1, 2018.
  2. Using quantities to parse data with units and errors, May 7, 2018.
  3. Data wrangling operations with quantities, Jun 27, 2018.
  4. Quantities for R -- Ready for a CRAN release, Aug 31, 2018.

Vignettes:

Papers:

  • Edzer Pebesma, Thomas Mailund and James Hiebert (2016). "Measurement Units in R." The R Journal, 8 (2), 486--494 [online].
  • Iñaki Ucar, Edzer Pebesma, Arturo Azcorra (2018). "Measurement Errors in R." arXiv [online].

Installation

Install the release version from CRAN:

install.packages("quantities")

The installation from GitHub requires the remotes package.

# install.packages("remotes")
remotes::install_github(paste("r-quantities", c("units", "errors", "quantities"), sep="/"))

Acknowledgement

This project gratefully acknowledges financial support from the

News

quantities 0.1.2

  • Add delayed S3 registration mechanism for R >= 3.6.0 (a9bb97e).

quantities 0.1.1

  • Initial CRAN release.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("quantities")

0.1.3 by Iñaki Ucar, 12 days ago


https://github.com/r-quantities/quantities


Report a bug at https://github.com/r-quantities/quantities/issues


Browse source code at https://github.com/cran/quantities


Authors: Iñaki Ucar [aut, cph, cre]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports Rcpp, utils

Depends on units, errors

Suggests tibble, pillar, dplyr, tidyr, testthat, knitr, rmarkdown

Linking to Rcpp


See at CRAN