Description Usage Arguments Details
pad strings on one right or left
1 2 3 4 5 6 7 8 9 | str_rpad(string, width, pad = " ")
str_lpad(string, width, pad = " ")
str_pad_max(string, side = c("left", "right", "both"), pad = " ")
str_rpad_max(string, pad = " ")
str_lpad_max(string, pad = " ")
|
string |
string to pad |
width |
integer; minimum number of characters for the final string |
pad |
single character string |
side |
character; one of |
These are convenience wrappers around stringr::str_pad()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.