si2f | R Documentation |
sitools::f2si()
Inverse of sitools::f2si()
si2f(string, unit = "")
string |
A character vector representing numbers along with SI prefixes and possibly a unit. |
unit |
The unit to expect after the SI prefix, if any. |
A numeric vector containing the values parsed from
string
.
# convert single number si2f("10k") # convert single number with unit si2f("23 mV", unit = "V") # convert list of numbers si_strings <- c("100 k", "35 E", "4 m") si2f(si_strings)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.