powered by
Collapse a character vector while removing missing data.
txt_collapse(x, collapse = " ")
a character vector
a character string to be used to collapse the vector. Defaults to a space: ' '.
a character vector of length 1 with the content of x collapsed using paste
paste
# NOT RUN { txt_collapse(c(NA, "hello", "world", NA)) # }
Run the code above in your browser using DataLab