powered by
Simplify units by removing repeated units from the numerator and denominator
simplifyUnit(numerator = "", denominator = "")
The units specified with units that are in both the numerator and denominator cancelled.
The numerator of the units (or the whole unit specification)
The denominator of the units (or NULL if numerator is the whole unit specification)
numerator
NA or "" for numerator and denominator are considered unitless.
NA
""
denominator
Other Unit conversion: modelUnitConversion()
modelUnitConversion()
simplifyUnit("kg", "kg/mL") # units that don't match exactly are not cancelled simplifyUnit("kg", "g/mL")
Run the code above in your browser using DataLab