wordcounts_DocumentTermMatrix | R Documentation |
The topicmodels package expects corpora in the form of a
DocumentTermMatrix
(defined by the tm package). This
function converts a data frame of word counts to this form.
wordcounts_DocumentTermMatrix(counts)
foreign_model
for using this package's other functions
on a model from topicmodels, wordcounts_Matrix
which
underlies this function.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.