Description Usage Arguments Value Author(s) See Also Examples
Process text that has been initialized to work as text in R.
1 |
text |
a text object that has been initialized using the |
stopwords.list |
Specify a stopwords.list you would like to use. You can either specify a custom list or a preloaded list, like "en" or "SMART" by using the 'stopwords()' function. |
lower |
logical. Do you want to convert all the words to lower case? If so, leave the default as |
removepunctuation |
logical. Do you want to remove punctuation? If so, leave the default as |
removenumbers |
logical. Do you want to remove numbers? If so, leave the default as |
removewhitespace |
logical. Do you want to remove whitespace, like spaces and tabs? If so, change the default by passing |
removestopwords |
logical. Do you want to remove stopwords, like "and" and "the"? If so, change the default by passing |
stemwords |
logical. Do you want to "stem" words, changing both "walking" and "walked" to "walk"? If so, change the default by passing |
Returns a processed text file with the requested transformations performed.
Amelia McNamara
1 2 3 | data(crude)
ProcessText(crude)
PricessText(crude, stopwords.list = "SMART", removestopwords = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.