remove all empty strings from R code example Example: remove all empty strings from R library(stringi) stri_remove_empty(x, na_empty = FALSE)