as_spork.unit_string {yamlet} | R Documentation |
Coerce Unit String to Spork
Description
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
.
Usage
## S3 method for class 'unit_string'
as_spork(x, ...)
Arguments
x |
unit_string |
... |
ignored arguments |
Value
units
See Also
Other spork:
as_spork.symbolic_units()
,
as_spork.units()
Examples
library(magrittr)
library(spork)
'kg.m^2/s^2' %>% as_unit_string %>% as_spork
'kg.m2 s-2' %>% as_unit_string %>% as_spork
[Package yamlet version 1.2.0 Index]