str_pad | R Documentation |
Dependency-free drop-in alternative for stringr::str_pad()
.
str_pad(
string,
width,
side = c("left", "right", "both"),
pad = " ",
use_width = TRUE
)
string |
Input vector. Either a character vector, or something coercible to one. |
width |
Minimum width of padded strings. |
side |
Side on which padding character is added (left, right or both). |
pad |
Single padding character (default is a space). |
use_width |
If |
A character vector.
Eli Pousson eli.pousson@gmail.com (ORCID)
Alexander Rossell Hayes alexander@rossellhayes.com (ORCID)
Adapted from the stringr package.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.