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.




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