View source: R/symbolic_units.R
| convert_to_base | R Documentation |
Convert the units of a units object to their base units, as defined by
the udunits database (SI units).
convert_to_base(x, simplify = TRUE, keep_fraction = TRUE)
x |
object of class |
simplify |
logical; if TRUE (default), the resulting units are simplified. |
keep_fraction |
logical; if TRUE (default), the result is kept as a fraction. |
object of class units with units converted to base units.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.