Description Usage Arguments Value Examples
View source: R/topic_modeling_core.R
Represents a document term matrix as a list.
1 | Dtm2Lexicon(dtm, ...)
|
dtm |
A document term matrix (or term co-occurrence matrix) of class
|
... |
Other arguments to be passed to |
Returns a list. Each element of the list represents a row of the input matrix. Each list element contains a numeric vector with as many entries as tokens in the original document. The entries are the column index for that token, minus 1.
1 2 3 4 5 6 7 8 | ## Not run:
# Load pre-formatted data for use
data(nih_sample_dtm)
result <- Dtm2Lexicon(dtm = nih_sample_dtm,
cpus = 2)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.