View source: R/clanToolsFunctions.R
leading.zeros | R Documentation |
Add zeros when numbers occur in filenames and such 009 comes before 111 (cf. 9 vs. 111)
leading.zeros(c(9,111),3)
x |
is a vector of numeric values |
digits |
is the number of digits in the final results. |
The vecor of characters wher zeors have been added as necessary
Claus E. Andersen
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.