This is a quick way around doing a call to str_elems() followed by a call
of apply(..., paste).
Arguments
- string
A character vector.
- indices
A vector of integerish values. Negative indexing is allowed as in
stringr::str_sub().- sep
A string. The separator for pasting
stringelements together.
See also
Other single element extractors:
str_elem(),
str_elems()
