Remove all stop-words and specific patterns from a character vector
Arguments
- text
Character vector
- stop_words
Character vector. Words to exclude from text. Example: if you want to exclude "a", whenever that word appears it will be excluded, but when the letter "a" appears in a word, it will remain.
- exclude
Character. Pattern to exclude using regex.
- sep
Character. String that separate the terms.
See also
Other Text Mining:
cleanText()
,
ngrams()
,
replaceall()
,
sentimentBreakdown()
,
textCloud()
,
textFeats()
,
textTokenizer()
,
topics_rake()