Difference between 'foreach' and 'parallel' in R?

318 views Asked by At

As the title suggest, I am confused about what is the difference between both package as they are both used in parallel computing in R.

1

There are 1 answers

2
johnjps111 On BEST ANSWER

foreach can execute using either %do% or %dopar% ... it only runs in parallel with %dopar%

More information available here: https://cran.r-project.org/web/packages/foreach/vignettes/foreach.pdf