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 05 May. 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
04/0504/0604/0704/0804/0904/1004/1104/1204/1304/1404/1504/1604/1704/1804/1904/2004/2104/2204/2304/2404/2504/2604/2704/2804/2904/3005/0105/0205/0305/04Downloads for foreach50006000700080009000100001100012000130001400015000TrendBars

Today's Hot Picks in Authors and Packages

helloJavaWorld  
Hello Java World
A dummy package to demonstrate how to interface to a jar file that resides inside an R package. ...
Download / Learn more Package Citations See dependency  
ClickHouseHTTP  
A Simple HTTP Database Interface to 'ClickHouse'
'ClickHouse' () is an open-source, high performance columnar OLAP (online ...
Download / Learn more Package Citations See dependency  
aspline  
Spline Regression with Adaptive Knot Selection
Perform one-dimensional spline regression with automatic knot selection. This package uses a penali ...
Download / Learn more Package Citations See dependency  
affinitymatrix  
Estimation of Affinity Matrix
Tools to study sorting patterns in matching markets and to estimate the affinity matrix of both the ...
Download / Learn more Package Citations See dependency  
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  
frailtypack  
Shared, Joint (Generalized) Frailty Models; Surrogate Endpoints
The following several classes of frailty models using a penalized likelihood estimation on the hazar ...
Download / Learn more Package Citations See dependency  

24,205

R Packages

207,311

Dependencies

65,312

Author Associations

24,206

Publication Badges

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