[R] Vector Size

jim holtman jholtman at gmail.com
Sat Feb 9 02:43:39 CET 2008


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?



More information about the R-help mailing list