[R] permutation of vectors (1 or 0)

jim holtman jholtman at gmail.com
Fri Dec 21 13:18:02 CET 2012


use the 64-bit version of R and get at least 4e18 bytes of memory.
Since that is quite a bit, you might want to use another approach
since you would need that much disk to just store the result which
might take 1.3 million cpu hours to calculate.

On Thu, Dec 20, 2012 at 9:07 AM, Olga Lyashevska <olga at herenstraat.nl> wrote:
> On 12/20/2012 02:13 PM, arun wrote:
>> library(gtools)
>> permutations(2,10,0:1,repeats.allowed=TRUE)
>
> This does what I need, but if I increase a number of permutations (59
> instead of 10), then I get an error.
>
> Error: cannot allocate vector of size 1.5 Gb
>
> Is there a smart way of increasing the maximum number of permutations
> that R can handle?
>
>
> Cheers,
> Olga
>
> ______________________________________________
> 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
Data Munger Guru

What is the problem that you are trying to solve?
Tell me what you want to do, not how you want to do it.




More information about the R-help mailing list