Pad a string and align within string
Arguments
- x
(string
)
a string.
- n
(integer(1)
)
number of characters in the output string. If n < nchar(x)
, an error is thrown.
- just
(string
)
text alignment justification to use. Defaults to "center"
. Must be one of
"center"
, "right"
, "left"
, "dec_right"
, "dec_left"
, or "decimal"
.
Value
x
, padded to be a string of length n
.