Add padding to string
Arguments
- d
vector of strings or numbers
- length
final string length
- after
if padding should be added after as opposed to default before
- pad
padding string of length 1
Examples
add_padding(sample(1:200,5))
#> [1] "025" "156" "023" "198" "200"