Other packages > Find by keyword >

foreach  

Provides Foreach Looping Construct
View on CRAN: Click here


Download and install foreach package within the R console
Install from CRAN:
install.packages("foreach")

Install from Github:
library("remotes")
install_github("cran/foreach")

Install by package version:
library("remotes")
install_version("foreach", "1.5.2")



Attach the package and use:
library("foreach")
Maintained by
Folashade Daniel
[Scholar Profile | Author Map]
All associated links for this package
First Published: 2009-06-27
Latest Update: 2022-02-02
Description:
Support for the foreach looping construct. Foreach is an idiom that allows for iterating over elements in a collection, without the use of an explicit loop counter. This package in particular is intended to be used for its return value, rather than for its side effects. In that sense, it is similar to the standard lapply function, but doesn't require the evaluation of a function. Using foreach without side effects also facilitates executing the loop in parallel.
How to cite:
Folashade Daniel (2009). foreach: Provides Foreach Looping Construct. R package version 1.5.2, https://cran.r-project.org/web/packages/foreach. Accessed 09 Mar. 2026.
Previous versions and publish date:
1.2.0-1 (2009-06-27 10:16), 1.2.1 (2009-06-30 08:55), 1.3.0 (2009-10-06 08:56), 1.3.2 (2011-05-20 14:05), 1.3.4 (2012-03-13 07:38), 1.3.5 (2012-03-14 21:35), 1.4.0 (2012-04-16 08:09), 1.4.1 (2013-06-06 19:39), 1.4.2 (2014-04-11 07:52), 1.4.3 (2015-10-13 09:12), 1.4.4 (2017-12-12 23:37), 1.4.7 (2019-07-28 01:00), 1.4.8 (2020-02-09 21:30), 1.5.0 (2020-03-30 14:10), 1.5.1 (2020-10-15 07:00)
Other packages that cited foreach R package
View foreach citation profile
Other R packages that foreach depends, imports, suggests or enhances
Complete documentation for foreach
Functions, R codes and Examples using the foreach R package
Some associated functions: foreach-ext . foreach-package . foreach . getDoParWorkers . getDoSeqWorkers . registerDoSEQ . setDoPar . setDoSeq . 
Some associated R codes: callCombine.R . do.R . foreach-ext.R . foreach-pkg.R . foreach.R . getDoPar.R . getDoSeq.R . getsyms.R . iter.R . nextElem.R . onLoad.R . setDoPar.R . setDoSeq.R . times.R . utils.R .  Full foreach package functions and examples
Downloads during the last 30 days

Today's Hot Picks in Authors and Packages

nextGenShinyApps  
Craft Exceptional 'R Shiny' Applications and Dashboards with Novel Responsive Tools
Nove responsive tools for designing and developing 'Shiny' dashboards and applications. The scripts ...
Download / Learn more Package Citations See dependency  
ggblanket  
Simplify 'ggplot2' Visualisation
Simplify 'ggplot2' visualisation with 'ggblanket' wrapper functions. ...
Download / Learn more Package Citations See dependency  
pooling  
Fit Poolwise Regression Models
Functions for calculating power and fitting regression models in studies where a biomarker is measur ...
Download / Learn more Package Citations See dependency  
rzentra  
Client for the 'ZENTRA Cloud' API
Provides functionality to read settings, statuses and readings of weather stations from the 'ZENTRA ...
Download / Learn more Package Citations See dependency  
Rgb  
The R Genome Browser
Classes and methods to efficiently handle (slice, annotate, draw ...) genomic features (such as gene ...
Download / Learn more Package Citations See dependency  

26,293

R Packages

225,784

Dependencies

70,376

Author Associations

26,294

Publication Badges

© Copyright since 2022. All right reserved, rpkg.net.  Based in Cambridge, Massachusetts, USA