Description Usage Arguments Details Value References See Also Examples
Return str
centered in a string of length width
.
1 | pystr_center(str, width, fillchar = " ")
|
str |
A character vector. |
width |
An integer. |
fillchar |
A character string. |
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)
.
A character vector.
https://docs.python.org/3/library/stdtypes.html#str.center
1 2 | pystr_center("center me", 15)
pystr_center("center me", 15, "*")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.