Re: [R] cannot allocate a vector with 1920165909 length

2009-07-28 Thread Andy Zhu
Out of memory? How large is your physical memory? --- On Tue, 7/28/09, zhijie zhang wrote: From: zhijie zhang Subject: [R] cannot allocate a vector with 1920165909 length To: r-h...@stat.math.ethz.ch Date: Tuesday, July 28, 2009, 9:49 PM Dear Rusers, The error for theĀ  following was that it

Re: [R] cannot allocate a vector with 1920165909 length

2009-07-28 Thread jim holtman
What are you trying to do? The expand.grid will create an object with 10 billion rows with 5 variables. My guess is that you would need 50G * 8 bytes/word = 400GB just to hold the one object. How much memory do you have on your system? Is there some other approach you can use? You may have pro

[R] cannot allocate a vector with 1920165909 length

2009-07-28 Thread zhijie zhang
Dear Rusers, The error for the following was that it cannot allocate the vector of length 1920165909. a <- expand.grid(se1=0:100/100, sp1=0:100/100, se2=0:100/100, sp2=0:100/100, DR=0:100/100) How to solve it? Maybe setwd(dir) can, i am not very sure about it. Any ideas about it? [[alt