Skip to content

units

Measurement Units for R Vectors

v1.0-1 · Mar 11, 2026 · GPL-2

Description

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.

Downloads

335.2K

Last 30 days

172nd

1.2M

Last 90 days

4.2M

Last year

Trend: -5.3% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (147)

Dependency Network

Dependencies Reverse dependencies Rcpp Rdistance photosynthesis quantities restoptr tealeaves ARUtools ECOTOXr EmissV FIESTAutils IceSat2R MRG MassWateR PKbioanalysis RWmisc a5R +132 more reverse deps units

Version History

updated 1.0-1 ← 1.0-0 diff Mar 11, 2026
new 1.0-0 Mar 10, 2026
updated 1.0-0 ← 0.8-7 diff Oct 8, 2025
updated 0.8-7 ← 0.8-6 diff Mar 11, 2025
updated 0.8-6 ← 0.8-5 diff Mar 7, 2025
updated 0.8-5 ← 0.8-4 diff Nov 27, 2023
updated 0.8-4 ← 0.8-3 diff Sep 12, 2023
updated 0.8-3 ← 0.8-2 diff Aug 10, 2023
updated 0.8-2 ← 0.8-1 diff Apr 26, 2023
updated 0.8-1 ← 0.8-0 diff Dec 9, 2022
updated 0.8-0 ← 0.7-2 diff Feb 4, 2022
updated 0.7-2 ← 0.7-1 diff Jun 7, 2021
updated 0.7-1 ← 0.7-0 diff Mar 15, 2021
updated 0.7-0 ← 0.6-7 diff Feb 24, 2021
updated 0.6-7 ← 0.6-6 diff Jun 12, 2020
updated 0.6-6 ← 0.6-5 diff Mar 15, 2020
updated 0.6-5 ← 0.6-4 diff Oct 7, 2019
updated 0.6-4 ← 0.6-3 diff Aug 21, 2019
updated 0.6-3 ← 0.6-2 diff May 2, 2019
updated 0.6-2 ← 0.6-1 diff Dec 4, 2018