remove_words.Rd
Remove specific words.
remove_words(text, words) # S3 method for corpus remove_words(text, words) # S3 method for documents remove_words(text, words) # S3 method for document remove_words(text, words)
text | An object inheriting of class |
---|---|
words | Word to remove. |
# NOT RUN { init_textanalysis() # build document doc <- string_document("this woops is not woop correct") # replaces in place! errors <- c("woops", "woop") remove_words(doc, words = errors) get_text(doc) # }