wordcounts_DocumentTermMatrix: Convert word counts data frame to a DocumentTermMatrix

wordcounts_DocumentTermMatrixR Documentation

Convert word counts data frame to a DocumentTermMatrix

Description

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.

Usage

wordcounts_DocumentTermMatrix(counts)

See Also

foreign_model for using this package's other functions on a model from topicmodels, wordcounts_Matrix which underlies this function.


agoldst/dfrtopics documentation built on July 15, 2022, 4:13 p.m.