units v0.6-7

0

Monthly downloads

0th

Percentile

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.

Functions in units

Name Description
Math.units Mathematical operations for units objects
Ops.units S3 Ops Group Generic Functions for units objects
deparse_unit deparse unit to string in product power form (e.g. km m-2 s-1)
install_symbolic_unit Define new symbolic units
hist.units histogram for unit objects
install_conversion_constant Install a conversion constant or offset between user-defined units.
unitless The "unit" type for vectors that are actually dimension-less.
mixed_units Create or convert to a mixed units list-column
units Set measurement units on a numeric vector
units_options set one or more units global options
valid_udunits Get information about valid units
as_difftime convert units object into difftime object
set_units set_units
as_units convert object to a units object
ud_units List containing pre-defined units from the udunits2 package.
make_unit Deprecated functions
drop_units Drop Units
plot.units create axis label with appropriate labels
seq.units seq method for units objects
boxplot.units boxplot for unit objects
No Results!

Vignettes of units

Name
647_Global_Temperature_Data_File.txt
measurement_units_in_R.Rmd
measurement_units_in_R.bib
units.Rmd
No Results!

Last month downloads

Details

LinkingTo Rcpp (>= 0.12.10)
VignetteBuilder knitr
SystemRequirements udunits-2
License GPL-2
URL https://github.com/r-quantities/units/
BugReports https://github.com/r-quantities/units/issues/
RoxygenNote 7.1.0
Encoding UTF-8
NeedsCompilation yes
Packaged 2020-06-11 11:45:34 UTC; edzer
Repository CRAN
Date/Publication 2020-06-13 15:30:02 UTC

Include our badge in your README

[![Rdoc](http://www.rdocumentation.org/badges/version/units)](http://www.rdocumentation.org/packages/units)