Description Usage Arguments Value Examples
This is a function that cleans a tidy data frame representing a corpus of documents
1 | clean_corpus(corpus, rm_special = FALSE, rm_numeric = FALSE)
|
corpus |
A data frame containing a column named text |
rm_special |
If TRUE, remove special (non-alphanumeric) characters |
rm_numeric |
If TRUE, remove numeric characters |
A data frame containing the cleaned corpus
1 2 | library(janeaustenr)
corpus <- clean_corpus(austen_books())
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.