wordFreqFromCorpus | R Documentation |
Create a word frequency dataframe from a text corpus.
wordFreqFromCorpus( corp, rm_sparse = 0.99, word_len = c(3, 26), word_freq = c(1, Inf) )
corp |
a tm text corpus object. |
rm_sparse |
Logical. Remove proportion of sparse terms. Default is |
word_len |
Numeric vector. Min and max length of words to include. Default is |
word_freq |
Numeric vector. Min and max frequency of words to include. Default is |
A data.table of word frequencies.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.