Description Usage Arguments Value Author(s) Examples
Add zeros before start of the number
1 | pad_number(x)
|
x |
A |
A character vector
that is padded to the length of the
maximum entry.
James Balamuta
1 2 3 4 5 6 7 8 9 | # Padding applied
pad_number(8:10)
# No padding applied
pad_number(2:3)
# Pads non-negative number with 0.
# This needs to be improved slightly...
pad_number(-1:1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.