Description Usage Arguments Details Value References Examples
Return a copy of the string left filled with ASCII '0'
digits to make
a string of length width
.
1 |
str |
A character vector. |
width |
An integer. |
A leading sign prefix (+/-) is handled by inserting the padding after
the sign character rather than before. 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.zfill
1 2 3 | pystr_zfill("42", 5)
pystr_zfill("-42", 5)
pystr_zfill("+42", 5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.