Last chance! 50% off unlimited learning
Sale ends in
stri_c_list
and stri_paste_list
are aliases for
stri_join_list
.
stri_join_list(x, sep = "", collapse = NULL)
stri_c_list(x, sep = "", collapse = NULL)
stri_paste_list(x, sep = "", collapse = NULL)
x
NULL
; an optional
results separatorcollapse
is NULL
, the result will be a single string.
Otherwise, you get a character vector of length equal
to the length of x
.Vectors in x
of length 0 are silently ignored.
If collapse
or sep
has length greater than 1,
then only the first string will be used.
stri_dup
,
stri_flatten
, stri_join
stri_join_list(stri_extract_all_words(c("Lorem ipsum dolor sit amet.",
"You're gonna get away with this.")), sep=", ")
stri_join_list(stri_extract_all_words(c("Lorem ipsum dolor sit amet.",
"You're gonna get away with this.")), sep=", ", collapse=". ")
stri_join_list(stri_extract_all_regex(c("R is OK.", "123 456", "Hey!"), "\\p{L}+"), " ")
stri_join_list(stri_extract_all_regex(c("R is OK.", "123 456", "Hey!"),
"\\p{L}+", omit_no_match=TRUE), " ", " -- ")
Run the code above in your browser using DataLab