Facilitates easy alignment of strings within a character vector. Designed to help implementers of formatters for custom data types.
align(x, width = NULL, align = c("left", "right"))
x | A character vector |
---|---|
width | The width that each string is padded to. If |
align | How should strings be aligned? If |
#> [1] "abc" "de "#> [1] "abc" " de"