powered by
This function helps to pad numbers on the left side with zeros so that they may be used to create strings used in filesystem names (for example).
pad(vect,np)
a (vector of) string(s) with np number of zeros padded on as a prefix
Jeremy Tantrum
a vector of strings representing numbers.
number of zeros to pad to the left of the string.
pad(c(1,10,1000,10000), 4)
Run the code above in your browser using DataLab