topics | R Documentation |
topics()
returns the most likely topics for documents based on the theta
parameter.
topics(x, min_prob = 0, select = NULL)
x |
a LDA model fitted by |
min_prob |
ignores topics if their probability is lower than this value. |
select |
returns the selected topic with the
highest probability; specify by the names of columns in |
Users can access the original matrix x$theta
for likelihood
scores; run max.col(x$theta)
to obtain the same result as topics(x)
.
Returns predicted topics as a vector.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.