Learn R Programming

MoMPCA (version 1.0.1)

DTMtoSparse: convert a dtm from package tm to sparseMatrix from package Matrix without converting it to full matrix.

Description

convert a dtm from package tm to sparseMatrix from package Matrix without converting it to full matrix.

Usage

DTMtoSparse(dtm)

Arguments

dtm

a document-term-matrix from package 'tm'

Value

a sparse dcgMatrix from package Matrix