Remove empty strings from library(stringr) in R
23:20 16 Apr 2021

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.

r string vector stringr