Description Usage Arguments Value Examples
Remove words from a TermDocumentMatrix
or DocumentTermMatrix
not meeting a rowSums
/
colSums
threshold.
1 | filter_words(x, min = 1)
|
x |
A |
min |
A minimal threshold that a words row/column must sum to. |
Returns a TermDocumentMatrix
or DocumentTermMatrix
.
1 2 3 4 5 | (x <-with(presidential_debates_2012, q_dtm(dialogue, paste(time, tot, sep = "_"))))
filter_words(x)
filter_words(x, 5)
(y <- with(presidential_debates_2012, q_tdm(dialogue, paste(time, tot, sep = "_"))))
filter_words(y, 6)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.