equLenNumber | R Documentation |
equLenNumber
convert numeric entry 'x' to text, with all elements getting the same number of characters (ie by adding preceeding or tailing 0s, if needed).
So far, the function cannot handle scientific annotations.
equLenNumber(x, silent = FALSE, callFrom = NULL)
x |
(caracter) input vector |
silent |
(logical) suppress messages |
callFrom |
(character) allows easier tracking of message(s) produced |
character vector formated as equal number of characters per value
sprintf
equLenNumber(c(12,-3,321)) equLenNumber(c(12,-3.3,321))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.