Description Usage Arguments Value
Create a document term matrix from a token list
1 | create_dtm(docs, terms, freqs = rep(1, length(terms)), weighting = weightTf)
|
docs: |
a vector that identifies to which document a token belongs |
terms: |
a vector of terms of length equal to docs |
freqs: |
an optional vector giving the frequency of each term |
weighting: |
the optional weighting for tm (default: term frequency) |
an object of type DocumentTermMatrix (from the tm package)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.