stri_remove_empty {stringi} | R Documentation |
This function removes all empty strings from a character vector.
stri_remove_empty(x, na_empty = FALSE)
x |
a character vector |
na_empty |
should missing values be treated as empty strings? |
Always returns a character vector.
Other utils: stri_list2matrix
,
stri_na2empty
stri_remove_empty(stri_na2empty(c("a", NA, "", "b"))) stri_remove_empty(c("a", NA, "", "b")) stri_remove_empty(c("a", NA, "", "b"), TRUE)