[R] Working with large matrix

Steve Lianoglou mailinglist.honeypot at gmail.com
Fri Sep 11 20:26:39 CEST 2009


On Sep 11, 2009, at 1:15 PM, A Ezhil wrote:

> Dear All,
> I have large matrix (46000 x 11250). I would like to do the linear  
> regression for each row. I wrote a simple function that has lm() and  
> used apply(mat,1,func). The issue is that it takes ages to load the  
> file and also to finish the lm. I am using LINUX 64 bit with 32G  
> mem. Is there an elegant and fast way of completing this task?

Do bigmemory and biglm help?



Steve Lianoglou
Graduate Student: Computational Systems Biology
   |  Memorial Sloan-Kettering Cancer Center
   |  Weill Medical College of Cornell University
Contact Info: http://cbio.mskcc.org/~lianos/contact

More information about the R-help mailing list