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.


Reference manual

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


0.4-6 by Edzer Pebesma, 4 months ago

Report a bug at

Browse source code at

Authors: Edzer Pebesma [aut, cre], Thomas Mailund [aut]

Documentation:   PDF Manual  

GPL-2 license

Imports udunits2

Suggests NISTunits, measurements, xml2, tibble, knitr, testthat, ggforce, magrittr

Imported by cdcfluview, ggforce, hydrolinks, lwgeom, sf, tidycensus, vein.

Suggested by constants.

See at CRAN