Quantity Calculus for R Vectors
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
man fix typo [ci skip] Sep 22, 2018
scripts ignore vignettes, don't force suggests Aug 13, 2018
src fix compilation issues on Windows Sep 22, 2018
tests fix test Aug 26, 2018
.Rbuildignore add script to check units/errors with quantities Jun 22, 2018
.gitignore first commit Feb 24, 2018
.travis.yml check against alternative units branch for now Jul 26, 2018
LICENSE first commit Feb 24, 2018
NAMESPACE initial support for mixed_units Aug 26, 2018
NEWS.md avoid using installed.packages as per CRAN request Sep 30, 2018
README.md on CRAN Oct 1, 2018
cran-comments.md on CRAN Oct 1, 2018


quantities: Quantity Calculus for R Vectors

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.


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.



  • 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].


Install the release version from CRAN:


The installation from GitHub requires the remotes package.

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


This project gratefully acknowledges financial support from the