[R] multicore combn

Søren Højsgaard Soren.Hojsgaard at agrsci.dk
Sun Oct 16 14:21:10 CEST 2011


Just thought I'd let you know the following: In the gRbase package there is a function called combnPrim which does the same as combn but it is implemented in C - and is quite a bit faster than combn().

Regards
Søren


________________________________________
Fra: r-help-bounces at r-project.org [r-help-bounces at r-project.org] På vegne af jebyrnes [byrnes at msi.ucsb.edu]
Sendt: 16. oktober 2011 03:25
Til: r-help at r-project.org
Emne: [R] multicore combn

This is a 'rather than re-invent the wheel' post.  Has anyone out there
re-written combn so that it can be parallelized - with multicore, snow, or
otherwise?  I have a job that requires large numbers of combinations, and
rather than get all of the index values, then crank it through mclapply, I
was wondering if there was a way to just do this natively within a function.

Just curious.  Thanks!

-Jarrett

--
View this message in context: http://r.789695.n4.nabble.com/multicore-combn-tp3908633p3908633.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
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.


More information about the R-help mailing list