Description Usage Arguments Value References See Also Examples
Return str
right justified in a string of length width
.
Padding is done using the specified fillchar
(default is an ASCII space).
The original string is returned if width
is less than or equal to nchar(str)
.
1 | pystr_rjust(str, width, fillchar = " ")
|
str |
A character vector. |
width |
An integer. |
fillchar |
A character string. |
A character vector.
https://docs.python.org/3/library/stdtypes.html#str.rjust
1 2 | pystr_rjust("right", 10)
pystr_rjust("right", 10, "*")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.