units

Measurement Units for R Vectors

Support for measurement units in R vectors, matrices and arrays: automatic propagation, conversion, derivation and simplification of units; raising errors in case of unit incompatibility. Compatible with the POSIXct, Date and difftime classes. Uses the UNIDATA udunits library and unit database for unit compatibility checking and conversion. Documentation about 'units' is provided in the paper by Pebesma, Mailund & Hiebert (2016, <doi:10.32614/RJ-2016-061>), included in this package as a vignette; see 'citation("units")' for details.

Tests Vignettes

Available Snapshots

This version of units can be found in the following snapshots:

Dependencies

Imports/Depends/LinkingTo/Enhances (3)
  • R
  • Rcpp
  • Rcpp >= 0.12.10
  • Suggests (12)
  • udunits2
  • NISTunits
  • measurements
  • xml2
  • magrittr
  • pillar >= 1.3.0
  • dplyr >= 1.0.0
  • vctrs >= 0.3.1
  • knitr
  • testthat >= 3.0.0
  • ggforce
  • rmarkdown
  • Version History