Philipp Pagel wrote:
I have to use a very large matrix. Something of the sort of matrix(80000,80000,n) .... where n is something numeric of the sort 0.xxxxxx

I have not found a way of doing it. I keep getting the error

Error in matrix(nrow = 80000, ncol = 80000, 0.2) : too many elements specified

Any suggestions? I have searched the mailing list, but to no avail.

A 80000x80000 matrix has 6.4 billion cells. If you assume 4 byte
(32bit) for a double precision floating point number that's an
impressive 25.6 Gb. Certainly does not fit into RAM on my machine.

Doubles are 8 bytes, and R can't handle vectors that large, even if you have the memory. (Indices are limited to 32 bit values even in 64 bit R.)

Duncan Murdoch

______________________________________________
R-help@r-project.org 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.

Reply via email to