Description Usage Arguments Details
This turns a "tidy" one-term-per-document-per-row data frame into a DocumentTermMatrix or TermDocumentMatrix from the tm package, or a dfm from the quanteda package. These functions support non-standard evaluation through the tidyeval framework. Groups are ignored.
| 1 2 3 4 5 | 
| data | Table with one-term-per-document-per-row | 
| term | Column containing terms as string or symbol | 
| document | Column containing document IDs as string or symbol | 
| value | Column containing values as string or symbol | 
| weighting | The weighting function for the DTM/TDM (default is term-frequency, effectively unweighted) | 
| ... | Extra arguments passed on to
 | 
The arguments term, document, and value
are passed by expression and support quasiquotation;
you can unquote strings and symbols.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.