Description Usage Arguments Examples
Remove specific words.
1 2 3 4 5 6 7 8 9 10 | remove_words(text, words)
## S3 method for class 'corpus'
remove_words(text, words)
## S3 method for class 'documents'
remove_words(text, words)
## S3 method for class 'document'
remove_words(text, words)
|
text |
An object inheriting of class |
words |
Word to remove. |
1 2 3 4 5 6 7 8 9 10 11 12 | ## 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)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.