Description Usage Arguments Value See Also Examples
These functions just wrap around stringr::str_pad() with some better
defaults (imho). If width is missing it defaults to length of the
string + 1 for str_lpad() and str_rpad() and + 2 for str_bpad().
1 2 3 4 5 |
string |
A character vector. |
width |
Minimum width of padded strings. |
pad |
Single padding character (default is a space). |
a padded character vector.
stringr::str_pad() for more examples.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.