Learn R Programming

units (version 0.8-5)

Measurement Units for R Vectors

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, ), included in this package as a vignette; see 'citation("units")' for details.

Copy Link

Version

Install

install.packages('units')

Monthly Downloads

340,644

Version

0.8-5

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

November 28th, 2023

Functions in units (0.8-5)

mixed_units

Create or convert to a mixed units list-column
unitless

The "unit" type for vectors that are actually dimension-less.
keep_units

Apply a function keeping units
Math.units

Mathematical operations for units objects
deparse_unit

deparse unit to string in product power form (e.g. km m-2 s-1)
load_units_xml

Load a unit system
hist.units

histogram for unit objects
drop_units

Drop Units
as_difftime

convert units object into difftime object
units-defunct

Defunct functions in units
units

Handle measurement units
boxplot.units

boxplot for unit objects
scale_units

Position scales for units data
units_options

set one or more units global options
seq.units

seq method for units objects
Ops.units

S3 Ops Group Generic Functions for units objects
install_unit

Define or remove units
plot.units

Plot units objects
ud_are_convertible

Test if two units are convertible
valid_udunits

Get information about valid units