R: converting from matrix.csr to dense matrix

Viewed 483

I have downloaded a dataset from LIBSVM and read it in using the e1071 function read.matrix.csr. This loads it as a SparseM matrix.csr object. But now I'm stuck as I can't figure out how to convert this object to a dense matrix.

Is there an easy way to convert a SparseM matrix.csr object to a standard R dense matrix?

1 Answers
Related