[R] Working with large matrix

A Ezhil ezhil02 at yahoo.com
Fri Sep 11 19:15:53 CEST 2009


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?

Thanks in advance.

Kind regards,
Ezhil




More information about the R-help mailing list