On Tue, 5 Aug 2008, rostam shahname wrote:
Hi R users,
I am trying to create a matrix, but R has problem with the size of dim,
wondering if there is anything that I can do?
No. See ?"Memory-limts", and consider a sparse matrix (e.g. package
Matrix).
Had this worked 'a' would have used 8*14
Are you aware that that matrix will have 147456^2 elements each of
size 8 bytes ("double") resulting in R trying to allocate
(147456^2)*8/1024^3 = 162 GB of RAM?
If you are aware of this and still trying to allocate a large matrix,
it is unfortunately too large due to "technical" limitations in R.
Hi R users,
I am trying to create a matrix, but R has problem with the size of dim,
wondering if there is anything that I can do?
> a <- diag(147456)
Error in array(0, c(n, p)) : 'dim' specifies too large an array
Thanks for your help
Rostam
[[alternative HTML version deleted]]
3 matches
Mail list logo