padstr {formatters} | R Documentation |
Pad a string and align within string
Description
Pad a string and align within string
Usage
padstr(x, n, just = list_valid_aligns(), fontspec = font_spec())
Arguments
x |
( |
n |
( |
just |
( |
fontspec |
( |
Value
x
, padded to be a string of length n
.
Examples
padstr("abc", 3)
padstr("abc", 4)
padstr("abc", 5)
padstr("abc", 5, "left")
padstr("abc", 5, "right")
## Not run:
# Expect error: "abc" has more than 1 characters
padstr("abc", 1)
## End(Not run)
[Package formatters version 0.5.8 Index]