udpipe (version 0.3)

txt_collapse: Collapse a character vector while removing missing data.

Description

Collapse a character vector while removing missing data.

Usage

txt_collapse(x, collapse = " ")

Arguments

x

a character vector

collapse

a character string to be used to collapse the vector. Defaults to a space: ' '.

Value

a character vector of length 1 with the content of x collapsed using paste

See Also

paste

Examples

Run this code
# NOT RUN {
txt_collapse(c(NA, "hello", "world", NA))
# }

Run the code above in your browser using DataLab