Description Usage Arguments Value Author(s)
View source: R/as.compressed.matrix.R
Converts a DocumentTermMatrix or TermDocumentMatrix (package tm), Matrix (package Matrix), matrix.csr (SparseM), data.frame, or matrix into a matrix.csr
representation to be used in the RTextTools
functions.
1 | as.compressed.matrix(DocumentTermMatrix)
|
DocumentTermMatrix |
A class of type DocumentTermMatrix or TermDocumentMatrix (package tm), Matrix (package Matrix), matrix.csr (SparseM), data.frame, or matrix. |
A matrix.csr
representation of the DocumentTermMatrix or TermDocumentMatrix (package tm), Matrix (package Matrix), matrix.csr (SparseM), data.frame, or matrix.
Timothy P. Jurka <tpjurka@ucdavis.edu>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.