powered by
Remove words from a vector that match a regular expression.
str_rm_regexp_match(x, pattern)
A vector of words.
A regular expression.
x, with the words matching the regular expression removed.
# NOT RUN { str_rm_regexp_match( x = c("a", "dog", "went", "to", "the", "store"), pattern = "to" ) # }
Run the code above in your browser using DataLab