str_pad {stringstatic} | R Documentation |
Duplicate and concatenate strings within a character vector
Description
Dependency-free drop-in alternative for stringr::str_pad()
.
Usage
str_pad(
string,
width,
side = c("left", "right", "both"),
pad = " ",
use_width = TRUE
)
Arguments
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 |
Value
A character vector.
Author(s)
Eli Pousson eli.pousson@gmail.com (ORCID)
Alexander Rossell Hayes alexander@rossellhayes.com (ORCID)
Source
Adapted from the stringr package.
[Package stringstatic version 0.1.2 Index]