(This article was first published on

There are a couple of options in R, if you want to utilize multiple cores on your machine. These days my favorite is doMC package, which depends on foreach and multicore packages.**Recipes, scripts and genomics**, and kindly contributed to R-bloggers)in the section below squareroot for each number is calculated in parallel. Check the vignette for more complicated example. In practice, if you need to iterate through a large data structure and there is no escape from that, this package makes things considerably faster depending on how many cores you have access to in your machine.

you can also choose how the resulting data structure is combined

To

**leave a comment**for the author, please follow the link and comment on his blog:**Recipes, scripts and genomics**.R-bloggers.com 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...