Package: units 0.8-5.6

Edzer Pebesma

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.

Authors:Edzer Pebesma [aut, cre], Thomas Mailund [aut], Tomasz Kalinowski [aut], James Hiebert [ctb], Iñaki Ucar [aut], Thomas Lin Pedersen [ctb]

units_0.8-5.6.tar.gz
units_0.8-5.6.zip(r-4.5)units_0.8-5.6.zip(r-4.4)units_0.8-5.6.zip(r-4.3)
units_0.8-5.6.tgz(r-4.4-x86_64)units_0.8-5.6.tgz(r-4.4-arm64)units_0.8-5.6.tgz(r-4.3-x86_64)units_0.8-5.6.tgz(r-4.3-arm64)
units_0.8-5.6.tar.gz(r-4.5-noble)units_0.8-5.6.tar.gz(r-4.4-noble)
units_0.8-5.6.tgz(r-4.4-emscripten)units_0.8-5.6.tgz(r-4.3-emscripten)
units.pdf |units.html
units/json (API)
NEWS

# Install 'units' in R:
install.packages('units', repos = c('https://enchufa2.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/r-quantities/units/issues

Uses libs:
  • udunits– Library for handling of units of physical quantities
  • c++– GNU Standard C++ Library v3

On CRAN:

16.96 score 175 stars 1.2k packages 3.1k scripts 335k downloads 19 exports 1 dependencies

Last updated 4 months agofrom:123c23d46a. Checks:OK: 9. Indexed: no.

TargetResultDate
Doc / VignettesOKNov 20 2024
R-4.5-win-x86_64OKNov 20 2024
R-4.5-linux-x86_64OKNov 20 2024
R-4.4-win-x86_64OKNov 20 2024
R-4.4-mac-x86_64OKNov 20 2024
R-4.4-mac-aarch64OKNov 20 2024
R-4.3-win-x86_64OKNov 20 2024
R-4.3-mac-x86_64OKNov 20 2024
R-4.3-mac-aarch64OKNov 20 2024

Exports:as_difftimeas_unitsdeparse_unitdrop_unitsinstall_unitkeep_unitsload_units_xmlmake_unit_labelmake_unitsmixed_unitsremove_unitscale_x_unitsscale_y_unitsset_unitsud_are_convertibleunitlessunits_optionsvalid_udunitsvalid_udunits_prefixes

Dependencies:Rcpp

Measurement units in R

Rendered frommeasurement_units_in_R.Rmdusingknitr::rmarkdownon Nov 20 2024.

Last update: 2022-12-10
Started: 2017-03-02

Units of Measurement for R Vectors: an Introduction

Rendered fromunits.Rmdusingknitr::rmarkdownon Nov 20 2024.

Last update: 2022-12-10
Started: 2016-06-08

Readme and manuals

Help Manual

Help pageTopics
convert units object into difftime objectas_difftime
boxplot for unit objectsboxplot.units
deparse unit to string in product power form (e.g. km m-2 s-1)deparse_unit
Drop Unitsdrop_units drop_units.data.frame drop_units.mixed_units drop_units.units
histogram for unit objectshist.units
Define or remove unitsinstall_unit remove_unit
Apply a function keeping unitskeep_units
Load a unit systemload_units_xml
Mathematical operations for units objectsMath.units
Create or convert to a mixed units list-columnmixed_units units<-.mixed_units
S3 Ops Group Generic Functions for units objectsOps.units
Plot 'units' objectsmake_unit_label plot.units
Position scales for units datascale_x_units scale_y_units
seq method for units objectsseq.units
Test if two units are convertibleud_are_convertible
The "unit" type for vectors that are actually dimension-less.unitless
Handle measurement unitsas_units as_units.call as_units.character as_units.Date as_units.default as_units.difftime as_units.expression as_units.name as_units.POSIXt as_units.symbolic_units as_units.units make_units set_units units units.symbolic_units units.units units<-.logical units<-.numeric units<-.units
set one or more units global optionsunits_options
Defunct functions in 'units'units-defunct
Get information about valid unitsvalid_udunits valid_udunits_prefixes