str_rm_words {textTools} | R Documentation |
Remove words from a vector of words found in another vector of words.
str_rm_words(x, y = stopwords)
x |
A vector of words. |
y |
A vector of words to delete from x, defaults to English stop words. |
x, with the words found in y removed.
str_rm_words(
x = c("a", "dog", "went", "to", "the", "store"),
y = stopwords
)
str_rm_words(
x = c("a", "dog", "went", "to", "the", "store"),
y = c("dog", "store")
)