foreach: Provides Foreach Looping Construct for R

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.

Package details

AuthorRich Calaway [cre], Microsoft [aut, cph], Steve Weston [aut]
MaintainerRich Calaway <richcala@microsoft.com>
LicenseApache License (== 2.0)
Version1.5.1
Package repositoryView on R-Forge
Installation Install the latest version of this package by entering the following in R:
install.packages("foreach", repos="http://R-Forge.R-project.org")

Try the foreach package in your browser

Any scripts or data that you put into this service are public.

foreach documentation built on May 2, 2019, 6:09 p.m.