powered by
MOVED Add padding to string
add_padding( d, length = NULL, after = FALSE, pad = "0", lead = NULL, tail = NULL )
vector or character strings of same length.
vector of strings or numbers
final string length
if padding should be added after as opposed to default before
padding string of length 1
leading string for all. Number or character vector. Cycled.
tailing string for all. Number or character vector. Cycled.
add_padding(sample(1:200,5),tail="AA",lead=c(2,3,"e"))
Run the code above in your browser using DataLab