zero.pad | R Documentation |
Return character representation of integers that are zero-padded to the left so all are the same length.
zero.pad(x)
x |
a vector of integers. |
Eric Archer eric.archer@noaa.gov
x <- c(0, 1, 3, 4, 10)
zero.pad(x)
x <- c(x, 11, 12, 100, 1000)
zero.pad(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.