[R] converting dgCMatrix to regular matrix

Berend Hasselman bhh at xs4all.nl
Tue Oct 9 19:24:25 CEST 2012


On 09-10-2012, at 19:04, Mark Leeds <markleeds2 at gmail.com> wrote:

> Hi: I've looked around and I must be missing it because it's probably
> somewhere.  Does someone know how to convert an object of class dgCmatrix
> to a regular matrix. I can send someone the data if they need it but it's
> too big to include here.
> 

as.matrix
as(x,"matrix")

Berend




More information about the R-help mailing list