powered by
Coerces unit string to spork. A literal dot means different things in spork vs. units, and there may be some other subtleties as well. Unit string is character that is_parseable.
is_parseable
# S3 method for unit_string as_spork(x, ...)
unit_string
ignored arguments
units
Other spork: as_spork.symbolic_units(), as_spork.units()
as_spork.symbolic_units()
as_spork.units()
# NOT RUN { library(magrittr) library(spork) 'kg.m^2/s^2' %>% as_unit_string %>% as_spork 'kg.m2 s-2' %>% as_unit_string %>% as_spork # }
Run the code above in your browser using DataLab