add_zero | R Documentation |
Prepend one or more 0's to a number. Useful for alphabetizing facto levels named with numbers.
add_zero(x, n)
x |
The vector to be modified |
n |
The number of characters that the resulting vector should have |
A character vector of identical length to x
in which all elements have n characters (or more, for those which already had more prior to processing)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.