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 15 Jul. 2026.
Previous versions and publish date:
(2026-07-09 07:39), 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

footBayes  
Fitting Bayesian and MLE Football Models
This is the first package allowing for the estimation, visualization and prediction of the most wel ...
Download / Learn more Package Citations See dependency  
pulseTD  
Identification of Transcriptional Dynamics using Pulse Models via 4su-Seq Data and RNA-Seq Data
A tool for analyzing the transcription, processing and degradation rates of genes by 4sU-seq (the Me ...
Download / Learn more Package Citations See dependency  
PermAlgo  
Permutational Algorithm to Simulate Survival Data
This version of the permutational algorithm generates a dataset in which event and censoring times ...
Download / Learn more Package Citations See dependency  
binhf  
Haar-Fisz Functions for Binomial Data
Binomial Haar-Fisz transforms for Gaussianization as in Nunes and Nason (2009). ...
Download / Learn more Package Citations See dependency  
SECFISH  
Disaggregate Variable Costs
These functions were developed within SECFISH project (Strengthening regional cooperation in the are ...
Download / Learn more Package Citations See dependency  
gscaLCA  
Generalized Structure Component Analysis- Latent Class Analysis & Latent Class Regression
Execute Latent Class Analysis (LCA) and Latent Class Regression (LCR) by using Generalized Structu ...
Download / Learn more Package Citations See dependency  

27,806

R Packages

239,283

Dependencies

73,837

Author Associations

27,807

Publication Badges

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