[R] maximum matrix size if it runs with 64-bit R

Marc Schwartz marc_schwartz at me.com
Sat Oct 2 18:22:21 CEST 2010


On Oct 2, 2010, at 11:14 AM, Carrie Li wrote:

> Hi everyone,
> 
> If I run on a 64-bit R, what is the maximum matrix size that it can handle ?
> Is a matrix 20,000 x 20,000 possible on 32 bit ?
> Thanks for answering!


A matrix is a vector with 'dim' attributes. The maximum vector length is 2^31 - 1 and that does not change between 32 and 64 bit R. The primary advantage of 64 bit R is the larger memory address space.

See:

  http://cran.r-project.org/doc/manuals/R-admin.html#Choosing-between-32_002d-and-64_002dbit-builds

HTH,

Marc Schwartz



More information about the R-help mailing list