Description Usage Arguments Value
Return a data frame containing article ids and topic occurence per document. Topic occurence can either be based on the posterior distrition (default) or based on wordassignments (as.wordassignments = T).
1 | topics.per.document(m, as.wordassignments = F)
|
m |
A LDA model from the topicmodels package |
as.wordassignments |
If True, return the topic occurence per document as the number of words assigned to the topic (instead of the posterior distribution) |
A data frame with rows corresponding to the terms in dtm and the statistics in the columns
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.