Description Usage Arguments Examples
This function will add leading 0s to a number to the values in a vector of numbers. The result will be a character string or vector of character strings.
1 | lead0(vect, len)
|
vect |
Either a numeric value or a vector of numeric values to which you want to add leading 0s len The length you want each value to have after leading 0s are added. For example, if every number in a vector should be 10 characters long, the function will add 1 leading 0 to 123456789, but 5 leading 0s to 12345. |
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.