as_spork.unit_string | R Documentation |
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
.
## S3 method for class 'unit_string'
as_spork(x, ...)
x |
unit_string |
... |
ignored arguments |
units
Other spork:
as_spork.symbolic_units()
,
as_spork.units()
library(magrittr)
library(spork)
'kg.m^2/s^2' %>% as_unit_string %>% as_spork
'kg.m2 s-2' %>% as_unit_string %>% as_spork
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.