[R] applying function to non zero elements of a sparse Matrix

gapster paleologo at gmail.com
Mon Apr 6 06:29:52 CEST 2009


The class Matrix (esp. dgCMatrix) is extraordinary. However, I still have growin
pains with it. One common need (I believe) is to apply the same function to all
non-zero elements of the sparse matrix. Is there a simple, elegant way? 

-g




More information about the R-help mailing list