View source: R/preprocess_pipeline.R
| preprocess.removeStopwords | R Documentation |
This function preprocesses a character vector by removing the words defined in stopwords.
and reports the mean number of characters before and after preprocessing.
preprocess.removeStopwords(text, stopwords)
text |
A character vector that will be preprocessed. |
stopwords |
A character vector containing words and phrases to be removed. |
A preprocessed character vector.
## Not run:
stopwords <- c("in", "and", "per se")
preprocess.removeStopwords(text, stopwords)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.