[R] Largest allowable matrix

Uwe Ligges ligges at statistik.uni-dortmund.de
Mon Nov 21 08:29:47 CET 2005


Barry Baker wrote:

> Hello,
> 
> I am a new R user and have two datasets that I would like to analyze.  The
> first is (2409222 x 17) and the other is (21682998 x 17). Is this possible
> in R?  If not then what is the maximum number of rows and columns or number
> of elements that R can handle?


The number of columns and rows is not a problem here, but you will need
21682998 * 17 * 4 bytes to store the latter matrix (assuming floats) in 
memory, that is 1406.139 Mb.
In order to do something sensible with the data, you need *at least* 
twice the amount of RAM, hence at least 3Gb.

Uwe Ligges


> Thanks in advance,
> Barry
> _________________________
> Barry Baker, Ph.D.
> Global Climate Change Initiative
> The Nature Conservancy
> 2424 Spruce St., Suite 100
> Boulder, CO 80302
> 
> Tel: (303)-541-0322
> Fax: (303)-449-4328
> 
> http://nature.org/tncscience/scientists/misc/baker.html
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html




More information about the R-help mailing list