[R] Initializing SparseM matrix matrix.csc

Wolski wolski at molgen.mpg.de
Fri Jun 18 16:20:24 CEST 2004


Hi!

Would like to initialize a huge matrix.csc (Pacakge SparseM) with all elements 0
and afterwards set a few alements nonzero.
The matrix which I like to allocate is so huge that I can not use 
A <- matrix(a,n1,p)
before:
A.csr <- as.matrix.csc(A)
because I can not allocate such a huge matrix A.
But I believe that the much more memmory efficient model in case of csc matrix should do it for a sparse matrix.


How to do this.
Sincerely Eryk




More information about the R-help mailing list