simplifyUnit | R Documentation |
Simplify units by removing repeated units from the numerator and denominator
simplifyUnit(numerator = "", denominator = "")
numerator |
The numerator of the units (or the whole unit specification) |
denominator |
The denominator of the units (or NULL if |
NA
or ""
for numerator
and denominator
are considered unitless.
The units specified with units that are in both the numerator and denominator cancelled.
Other Unit conversion:
modelUnitConversion()
simplifyUnit("kg", "kg/mL")
# units that don't match exactly are not cancelled
simplifyUnit("kg", "g/mL")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.