unitType: Return the unit.type of a unit string

View source: R/unit.conversions.R

unitTypeR Documentation

Return the unit.type of a unit string

Description

Return the unit.type of a unit string

Usage

unitType(unitstr)

Arguments

unitstr

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

Examples

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

USGS-R/loadflex documentation built on July 26, 2023, 9:54 p.m.