unitType: Return the unit.type of a unit string

Description Usage Arguments Examples

Description

Return the unit.type of a unit string

Usage

1
unitType(unitstr)

Arguments

unitstr

A string representing units (just one at a time, please)

Examples

1
2
3
4
loadflex:::unitType('kg') # 'load.units'
loadflex:::unitType('kg/d') # NA
loadflex:::unitType(loadflex:::translateFreeformToUnitted('kg/d')) # 'load.rate.units'
loadflex:::unitType('nothing') # NA

McDowellLab/loadflex documentation built on May 8, 2019, 9:48 a.m.