Flattens and concatenates character vectors in a list

flatten_list_of_strings(strings)

Arguments

strings

A list of character vectors.

Value

Character vector, same length as the initial list.

Examples

words <- list("a", NULL, c("few", "words"), NA, c("to", "try"), c(NA, NA), c("and", NA, "finally")) flatten_list_of_strings(words)
#> [1] "a" NA "few, words" NA "to, try" #> [6] NA "and, finally"