You just have too large a vector for your memory.
There is not much you can do with an object of 500 MG.
 You have over 137 million combinations.

What are you trying to do with this vector?


--- Oscar A <[EMAIL PROTECTED]> 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@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.
>

______________________________________________
R-help@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.

Reply via email to