Dependency-free drop-in alternative for stringr::str_c()
.
Source
Adapted from the stringr package.
Arguments
- ...
One or more character vectors. Zero length arguments are removed. Short arguments are recycled to the length of the longest.
Like most other R functions, missing values are "infectious": whenever a missing value is combined with another string the result will always be missing. Use
str_replace_na()
to convertNA
to "NA"- sep
String to insert between input vectors.
- collapse
Optional string used to combine input vectors into single string.