Creates a data frame out of a Matrix that has column and row names. Name defaults assume a term frequency matrix, but it is possible to give other names.
1 | sm_tidy_matrix(x, rows_to = "document", cols_to = "term", values_to = "count")
|
x |
the matrix to tidy. |
rows_to |
names of the column containing the rownames; defaults to "document" |
cols_to |
names of the column containing the rownames; defaults to "term" |
values_to |
names of the column containing the rownames; defaults to "count" |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.