units: Measurement Units for R Vectors

Share:

Support for measurement units in R vectors; automatic propagation, conversion, derivation and simplification of units; raising errors in case of unit incompatibility. Compatible with difftime. Uses the UNIDATA udunits library and unit database for unit conversion and compatibility checking.

Author
Edzer Pebesma [aut, cre], Thomas Mailund [aut]
Date of publication
2016-11-21 12:02:00
Maintainer
Edzer Pebesma <edzer.pebesma@uni-muenster.de>
License
GPL-2
Version
0.4
URLs

View on CRAN

Man pages

as_cf
deparse unit to string in product power form (e.g. km m-2...
as.dt
convert units object into difftime object
as.units
convert object to a units object
as.units.difftime
convert difftime objects to units
hist.units
histogram for unit objects
make_unit
Create a new unit from a unit name.
Math.units
Mathematical operations for units objects
Ops.units
S3 Ops Group Generic Functions for units objects
parse_unit
parse unit in product power form (e.g. km m-2 s-1)
plot.units
create axis label with appropriate labels
type_sum.units
type_sum for tidy tibble printing
ud_units
List containing pre-defined units from the udunits2 package.
unitless
The "unit" type for vectors that are actually dimension-less.
units
Convert units
units_options
set one or more units global options
units-set-.numeric
Set measurement units on a numeric vector
units.units
retrieve measurement units from units object

Files in this package

units
units/TODO
units/inst
units/inst/doc
units/inst/doc/units.html
units/inst/doc/measurement_units_in_R.Rnw
units/inst/doc/units.Rmd
units/inst/doc/measurement_units_in_R.pdf
units/inst/doc/units.R
units/inst/doc/measurement_units_in_R.R
units/tests
units/tests/plot.R
units/tests/testthat.R
units/tests/testthat
units/tests/testthat/test_arith.R
units/tests/testthat/test_misc.R
units/tests/testthat/test_summaries.R
units/tests/testthat/test_conversion.R
units/tests/testthat/test_symbolic_units.R
units/tests/testthat/test_math.R
units/NAMESPACE
units/demo
units/demo/00Index
units/demo/ggforce.R
units/demo/year.R
units/demo/cf.R
units/data
units/data/ud_units.rda
units/R
units/R/arith.R
units/R/plot.R
units/R/math.R
units/R/ud_units.R
units/R/summaries.R
units/R/options.R
units/R/conversion.R
units/R/symbolic_units.R
units/R/misc.R
units/vignettes
units/vignettes/fig1.pdf
units/vignettes/measurement_units_in_R.Rnw
units/vignettes/RJournal.sty
units/vignettes/units.Rmd
units/vignettes/647_Global_Temperature_Data_File.txt
units/vignettes/fig2.pdf
units/vignettes/measurement_units_in_R.bib
units/MD5
units/build
units/build/vignette.rds
units/DESCRIPTION
units/man
units/man/units.Rd
units/man/ud_units.Rd
units/man/units_options.Rd
units/man/as.units.difftime.Rd
units/man/make_unit.Rd
units/man/as.dt.Rd
units/man/parse_unit.Rd
units/man/units-set-.numeric.Rd
units/man/as_cf.Rd
units/man/plot.units.Rd
units/man/as.units.Rd
units/man/units.units.Rd
units/man/Ops.units.Rd
units/man/hist.units.Rd
units/man/unitless.Rd
units/man/type_sum.units.Rd
units/man/Math.units.Rd