powered by
prependZeros(x, width = max(nchar(x)))
prependZeros(1:10) prependZeros(1:10, 4)
Run the code above in your browser using DataLab