View source: R/translateUnit.R
translateUnit | R Documentation |
This function translates number to character name or vice versa
translateUnit(vec)
vec |
The vector containing name or number to be translated |
## Create numeric vector
myUnit = c(1000, 1e6, 1000, 1e9, 1e9, 1e12)
## Translate numeric to character
myUnit2 = translateUnit(myUnit)
myUnit2
## Now translate back
translateUnit(myUnit2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.