simplifyUnit {babelmixr2} | R Documentation |
Simplify units by removing repeated units from the numerator and denominator
Description
Simplify units by removing repeated units from the numerator and denominator
Usage
simplifyUnit(numerator = "", denominator = "")
Arguments
numerator |
The numerator of the units (or the whole unit specification) |
denominator |
The denominator of the units (or NULL if |
Details
NA
or ""
for numerator
and denominator
are considered unitless.
Value
The units specified with units that are in both the numerator and denominator cancelled.
See Also
Other Unit conversion:
modelUnitConversion()
Examples
simplifyUnit("kg", "kg/mL")
# units that don't match exactly are not cancelled
simplifyUnit("kg", "g/mL")
[Package babelmixr2 version 0.1.2 Index]