str_concat()
takes multiple string arguments and concatenates them into a single string,
inserting a specified separator between each piece.
Arguments
- ...
One or more character vectors or objects coercible to character vectors. These are the strings or objects to be concatenated.
- separator
A character string to separate the concatenated elements. Defaults to an empty string, which results in no separation between elements.
Value
A single character string representing the concatenation of all input elements, separated by
the specified separator
.
See also
chr_collapse()
for reduce a character vector into a single string.
paste()
, which str_concat()
wraps around.