Re: [R] Need Help - Urgent

From: roger bos <roger.bos_at_gmail.com>
Date: Sat 04 Jun 2005 - 01:24:43 EST

Those sizes are smaller than I thought they would be, but you repeat the variables more than once in expand.grid, so its still large overall. Maybe you can try a simpler example first and then build up to what you really want once you get the simpler one working. The underlying problem is that the expand.grid is so large you don't have enough memory to store it. Its easy to do this since because of the nature of expand.grid.

Your other option is to post a new message explaining the end goal and asking for suggestions on how to get there.

Thanks,

Roger

On 6/3/05, Huntsinger, Reid <reid_huntsinger@merck.com> wrote:
> You're asking for a matrix with
> length(x)^2*length(y)^2*length(s)^2*length(t)^2 rows. What are these
> lengths? Is that what you're expecting? Perhaps you want the distinct factor
> levels in x,y,s,t rather than x,y,s,t themselves?
>
> Reid Huntsinger
>
> -----Original Message-----
> From: r-help-bounces@stat.math.ethz.ch
> [mailto:r-help-bounces@stat.math.ethz.ch] On Behalf Of Nivesh Pawar
> Sent: Friday, June 03, 2005 8:00 AM
> To: r-help@stat.math.ethz.ch
> Subject: [R] Need Help - Urgent
>
>
>
> Hello,
> I am a student and some really urgent help.I am using R software and while
> creating a grid with eight elements its showing the error and while if i
> do it with seven it says that the memory is not sufficient...
> here is the line ...with the error....
>
> > Z<-as.matrix(expand.grid(x,y,x,y,t,s,t,s))
>
> Error in rep.int(rep.int(seq(length = nx), rep.int(rep.fac, nx)), orep) :
> cannot allocate vector of length 1128960000
>
> Is it possible to somehow increase the default size of the matrix?
> please help..
>
> THanking you
> nivesh pawar
>
> ______________________________________________
> R-help@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
>
> ______________________________________________
> R-help@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
>



R-help@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 Received on Sat Jun 04 01:28:11 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:22 EST