Re: [R] Vector Size

From: jim holtman <jholtman_at_gmail.com>
Date: Fri, 8 Feb 2008 20:43:39 -0500

How much memory do you have on your system? What type of system do you have? There is information in the archive about generating a sequence like this without having to have it all in memory at once. BTW, your matrix will require 1GB to store a single copy, so you will probably need at least 2-3X (2-3GB) to create it and do something with it.

On Feb 8, 2008 7:28 PM, Oscar A <oscaroseroruiz_at_yahoo.com> wrote:
>
> Hello everybody!!
> I'm from Colombia (South America) and I'm new on R. I've been trying to
> generate all of the possible combinations for a 6 number combination with
> numbers that ranges from 1 to 53.
>
> I've used the following commands:
>
> datos<-c(1:53)
> M<-matrix(data=(combn(datos,6,FUN=NULL,simplify=TRUE)),nrow=22957480,ncol=6,byrow=TRUE)
>
> Once the commands are executed, the program shows the following:
>
> Error: CANNOT ALLOCATE A VECTOR OF SIZE 525.5 Mb
>
>
> How can I fix this problem?
> --
> View this message in context: http://www.nabble.com/Vector-Size-tp15366901p15366901.html
> Sent from the R help mailing list archive at Nabble.com.
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help_at_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.
>

-- 
Jim Holtman
Cincinnati, OH
+1 513 646 9390

What is the problem you are trying to solve?

______________________________________________
R-help_at_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.
Received on Sat 09 Feb 2008 - 01:50:38 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 09 Feb 2008 - 04:30:13 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.

list of date sections of archive