Skip to Content


Foreach looping construct for R
Revolution Analytics, Steve Weston
Apache License (== 2.0)
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 Version Released
foreach 1.4.1 2 years 25 weeks ago
foreach 1.4.0 3 years 32 weeks ago
foreach 1.3.5 3 years 37 weeks ago
foreach 1.3.4 3 years 37 weeks ago
foreach 1.3.2 4 years 27 weeks ago
foreach 1.3.0 6 years 8 weeks ago
foreach 1.2.1
foreach 1.2.0-1
Your rating: None Overall: 4.8 (570 votes)
Your rating: None Documentation: 4 (469 votes)