ud_convert2: Chemical symbol-aware unit conversion

Description Usage Arguments Value Author(s) Examples

View source: R/ud_convert2.R

Description

Chemical symbol-aware unit conversion

Usage

1
ud_convert2(x, from, to)

Arguments

x

Numeric value to convert

from, to

Units from/to which to convert. Syntax is identical to udunits2::ud.convert() except that chemical symbols in hard brackets (e.g. [N2O]) can be converted.

Value

Values of x converted to to units.

Author(s)

Alexey Shiklomanov

Examples

1
2
ud_convert2(5, "Pg [C]", "Mt [CO2]")
#> 18.32223

ashiklom/hector-rcmip documentation built on Sept. 23, 2020, 11:30 a.m.