powered by
parse unit in product power form (e.g. km m-2 s-1)
parse_unit(str)
lenght-one character vector containing the unit string
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.
demo(cf)
parse_unit
/
m/s-1
# NOT RUN { parse_unit("kg m-2 s-1") # }
Run the code above in your browser using DataLab