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]
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 29 Mar. 2025.
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
02/2702/2803/0103/0203/0303/0403/0503/0603/0703/0803/0903/1003/1103/1203/1303/1403/1503/1603/1703/1803/1903/2003/2103/2203/2303/2403/2503/2603/2703/28Downloads for foreach5000600070008000900010000110001200013000TrendBars

Today's Hot Picks in Authors and Packages

quickcode  
Quick and Essential 'R' Tricks for Better Scripts
The NOT functions, 'R' tricks and a compilation of some simple quick plus often used 'R' codes to im ...
Download / Learn more Package Citations See dependency  
gglgbtq  
Show Pride on 'ggplot2' Plots
Provides multiple palettes based on pride flags with tailored themes. ...
Download / Learn more Package Citations See dependency  
landmix  
Landmark Prediction for Mixture Data
Non-parametric prediction of survival outcomes for mixture data that incorporates covariates and a l ...
Download / Learn more Package Citations See dependency  

23,842

R Packages

207,311

Dependencies

64,420

Author Associations

23,781

Publication Badges

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