Skip to content
Prev 294571 / 398506 Next

Simple parallel for loop

I haven't actually used foreach very much myself, but I would imagine
that you could just take advantage of the fact that most plot
functions return their arguments silently and then just throw the
results away (i.e., don't assign them)

Switching %do% to %dopar% automatically activates parallelization
(dopar being "do in parallel")

I believe you decide the number of cores to use when you set up your
parallel backend (either multicore or snow)

Hope this helps,
Michael
On Tue, May 15, 2012 at 2:20 AM, Alaios <alaios at yahoo.com> wrote: