unit.scale | R Documentation |
This function reads a prefix from a string and returns the exponent (base-10) that this prefix represents.
unit.scale(prefix)
prefix |
a string, e.g.: "M", "mega", "m", "milli", "µ", "micro", etc. |
an integer that corresponds to the prefix, defaults to 0.
> unit.scale("M")
[1] 6
> unit.scale("µ")
[1] -6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.