terms_and_topics | R Documentation |
Function to extract the most likely terms for each topic or the most likely topics for each document.
## S4 method for signature 'TopicModel'
terms(x, k, threshold, ...)
## S4 method for signature 'TopicModel'
topics(x, k, threshold, ...)
x |
Object of class |
k |
The maximum number of terms/topics returned. By default set to 1 if no threshold is given. |
threshold |
Only the terms/topics which are more likely than the threshold are returned. |
... |
Further arguments passed to |
A list or matrix containing the most likely terms for each topic or the most likely topics for each document.
Bettina Gruen
posterior-methods
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.