Dependency-free drop-in alternative for stringr::str_c()
.
str_c(..., sep = "", collapse = NULL)
If collapse = NULL
(the default) a character vector
with length equal to the longest input string.
If collapse is non-NULL
, a character vector of length 1.
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 convert NA
to "NA"
String to insert between input vectors.
Optional string used to combine input vectors into single string.