R/exploration.R
Note the documents are defined as a distribution over topics. This returns the highest probability for a given topic, but it is possible the 2nd to high topic may have about the same probability.
GetDocumentsAssignedToTopicK(lda.model, k)
lda.model | A single lda model. |
---|---|
k | The topic k (e.g. topic 5 from a lda model of 10 topics) to list the documents. |
The list of documents for topic k in lda.model.