Description Usage Arguments Value Author(s) Examples
Transform numeric values to character string prepending leading zero(s).
1 | leading0(num, digits = 2)
|
num |
Numeric vector (character also possible) to transform. |
digits |
Numeric value of minimum length of output strings. |
Character vector with same length of strings of each value.
Original "string" is prepended by zero(s).
String length is at least max(nchar(as.character(num)))
.
Sven E. Templer sven.templer@gmail.com
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.