Description Usage Arguments Value Examples
View source: R/dtm.to.Matrix.R
Transform a DTM produced by the tm package into a sparse Matrix for use with the glmnet package.
1 | dtm.to.Matrix(dtm)
|
dtm |
A document term matrix of class 'DocumentTermMatrix'. |
A sparse matrix (of class 'Matrix') representation of the DTM.
1 | ## Not run: dtm.to.Matrix(dtm)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.