Remove empty strings from library(stringr) in R
I have a vector of string named words, and I need to remove all empty strings using library(stringr). I tried str_remove_all(words, pattern = ""), but it showed me:
Error: Empty `pattern`` not supported.
What should I do? Any help would be appreciated.