df2dtm | R Documentation |
Convert a data frame to a document-term matrix.
df2dtm(df, document = "pmid", term = "DescriptorName", counts = "type")
df |
a dataframe |
document |
a string |
term |
a string |
counts |
a string, either "type" or "token" |
A sparse matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.