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] "112" "186" "030" "014" "028"