Description Usage Arguments Examples
Tidy a DocumentTermMatrix or TermDocumentMatrix into
a three-column data frame: term{}
, and value (with
zeros missing), with one-row-per-term-per-document.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
x |
A DocumentTermMatrix or TermDocumentMatrix object |
... |
Extra arguments, not used |
row_names |
Specify row names |
col_names |
Specify column names |
1 2 3 4 5 6 | if (requireNamespace("topicmodels", quietly = TRUE)) {
data("AssociatedPress", package = "topicmodels")
AssociatedPress
tidy(AssociatedPress)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.