Skip to content

vector maximum length

2 messages · Daniel, Sherae, ALABS, Brian Ripley

#
Hi, What is the maximum size of a vector in R?

I am trying to load in a vector with 1.6 million elements.

Thanks,
Sherae
#
Depends on the R platform, but much larger than that.  On most systems the 
maximum length will be 2^31-1 (over 2 billion), but on 32-bit systems the 
storage needed for the vector will hit its limit first.  You can expect to 
be able to use a small number of hundred million elements, depending on 
what they are, if you have enough RAM.
On Tue, 17 Jun 2003, Daniel, Sherae, ALABS wrote:

            
load as in load()?  In which case someone must have created it!