Flattens and concatenates character vectors in a list
flatten_list_of_strings(strings)
strings | A list of character vectors. |
---|
Character vector, same length as the initial list.
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"