Multicore (parallel) processing in R

August 27, 2013

(This article was first published on R Video Blog! , and kindly contributed to R-bloggers)

Multicore (parallel) processing in R from Wallace Campbell on Vimeo.

If you're not programming in parallel, you're only using a fraction of your computer's power! I demonstrate how to run "for" loops in parallel using the mclapply function from the multicore library. The code can be scaled to any number of available cores.

To leave a comment for the author, please follow the link and comment on their blog: R Video Blog! . offers daily e-mail updates about R news and tutorials on topics such as: visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...

If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.