powered by
Convert the units of a units object to their base units, as defined by the udunits database (SI units).
units
convert_to_base(x, simplify = TRUE, keep_fraction = TRUE)
object of class units with units converted to base units.
object of class units.
logical; if TRUE (default), the resulting units are simplified.
logical; if TRUE (default), the result is kept as a fraction.
x <- set_units(32, mJ/g) convert_to_base(x) convert_to_base(x, keep_fraction=FALSE) convert_to_base(x, simplify=FALSE) convert_to_base(x, simplify=FALSE, keep_fraction=FALSE)
Run the code above in your browser using DataLab