str_rm_regexp_match {textTools} | R Documentation |
Remove words from a vector that match a regular expression.
str_rm_regexp_match(x, pattern)
x |
A vector of words. |
pattern |
A regular expression. |
x, with the words matching the regular expression removed.
str_rm_regexp_match(
x = c("a", "dog", "went", "to", "the", "store"),
pattern = "to"
)