View source: R/utils-pad-num.R
pad_num | R Documentation |
Pad the beginning of numbers in a vector with zeroes so they all have the same number of characters
pad_num(x, n_digits = 2, pad_char = "0")
x |
A vector of the numbers to pad |
n_digits |
The number of characters that the resulting strings should have |
pad_char |
The character to pad with. Typically zero but can be any character |
A vector of strings of the padded numbers
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.