Pad Character Vectors
a character
vector
integer
scalar. target string width
character
scalar. the symbol to pad with
pad_left("foo", 5)
#> [1] " foo"
pad_right("foo", 5, ".")
#> [1] "foo.."
pad_left(c("foo", "foooooo"), pad = ".")
#> [1] "....foo" "foooooo"