Learn R Programming

units (version 0.4-5)

parse_unit: parse unit in product power form (e.g. km m-2 s-1)

Description

parse unit in product power form (e.g. km m-2 s-1)

Usage

parse_unit(str)

Arguments

str

lenght-one character vector containing the unit string

Details

see also demo(cf) for parsing units in the CF standard name table. Note that parse_unit currently fails on expressions containing a /, such as m/s-1.

Examples

Run this code
# NOT RUN {
parse_unit("kg m-2 s-1")
# }

Run the code above in your browser using DataLab