padstr | R Documentation |
Pad a string and align within string
padstr(x, n, just = list_valid_aligns(), fontspec = font_spec())
x |
( |
n |
( |
just |
( |
fontspec |
( |
x
, padded to be a string of length n
.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.