Description Usage Arguments See Also Examples
Calculate a tidy topic document matrix, document topic matrix.
These matrices are often very sparse.
These can easily be converted to a real sparse matrix using as.sparseMatrix
.
1 2 3 4 5 6 7 |
state |
a |
1 2 3 4 5 6 7 | # Load the state of the union topic model
data("sotu50")
dtm <- doc_topic_matrix(sotu50)
tdm <- topic_doc_matrix(sotu50)
ttm <- type_topic_matrix(sotu50)
ttm <- topic_type_matrix(sotu50)
sp_mat <- as.sparseMatrix(x = ttm)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.