Re: [R] What is the maximum size of a matrix?

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Sat, 02 Jun 2007 07:14:24 +0100 (BST)

Thanks Marc. The information is in help("Memory-limits").

We are aware that at some point we will need to raise this limit and have discussed ways to do so. But it is not going to be an issue for a while: working with 16Gb objects needs the sort of amount of memory that will not become common for anouther 5 years or so.

On Fri, 1 Jun 2007, Marc Schwartz wrote:

> Harold,
>
> Actually there is a maximum size, even if one had sufficient memory.
>
> Since a matrix is a vector with a dim attribute, and these objects are
> indexed using integers, the maximum sized vector one 'could' create is:
>
>> .Machine$integer.max
> [1] 2147483647
>
> which is:
>
>> 2^31 - 1
> [1] 2147483647
>
> and that does not differ on 64 bit systems.
>
> HTH,
>
> Marc Schwartz
>
>
> On Fri, 2007-06-01 at 17:36 -0400, Doran, Harold wrote:
>> There is no maximum size. This will be driven by (at least) two issues.
>> First, how much memory you have on your own computer and second what
>> data you have in each cell. For instance, an integer takes less memory
>> than a floating point.
>>
>> Other spreadsheet programs like excel limit the number of rows to 16^2
>> irrespective of memory, but that is not true here.
>>
>> Harold
>>
>>
>>> -----Original Message-----
>>> From: r-help-bounces_at_stat.math.ethz.ch
>>> [mailto:r-help-bounces_at_stat.math.ethz.ch] On Behalf Of Guanrao Chen
>>> Sent: Friday, June 01, 2007 5:06 PM
>>> To: r-help_at_stat.math.ethz.ch
>>> Subject: [R] What is the maximum size of a matrix?
>>>
>>> hi, Rers
>>>
>>> I tried to find out the max size (# of rows, # of
>>> columns) of a matrix that is allowed by R but failed.
>>>
>>> Can anybody let me know?
>>>
>>> Thanks!
>>> Guanrao
>>>
>
> ______________________________________________
> 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
> and provide commented, minimal, self-contained, reproducible code.
>

-- 
Brian D. Ripley,                  ripley_at_stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
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
and provide commented, minimal, self-contained, reproducible code.
Received on Sat 02 Jun 2007 - 06:22:11 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 02 Jun 2007 - 08:31:20 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.