numbers0 | R Documentation |
Name nth item in order (001)
numbers0(x, number_places = NA)
x |
a single or vector of integer values that need to be converted from something like 1 to "001" |
number_places |
default = NA. If equal to NA, the function will take use the longest length of a value provided in x (example 1). If equal to a number, it will make sure that every number is the same length of number_places (example 2) or larger (if a value of x has more places than number_places(example 3)). |
A string of the values in x preceeded by "0"s
# example 1
numbers0(x = c(1,11,111))
# example 2
numbers0(x = c(1,11,111), number_places = 4)
# example 3
numbers0(x = c(1,11,111), number_places = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.