Description Usage Arguments Value Author(s) Examples
This function pads the specified numbers with zeros to a specified total width.
1 | prependZeros(x, width = max(nchar(x)))
|
x |
Vector of numbers to be padded. |
width |
Width to pad the numbers to. |
Character vector with the 0-padded numbers.
Peter Langfelder
1 2 | prependZeros(1:10)
prependZeros(1:10, 4)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.