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 3 years 7 weeks ago
foreach 1.4.0 4 years 14 weeks ago
foreach 1.3.5 4 years 19 weeks ago
foreach 1.3.4 4 years 19 weeks ago
foreach 1.3.2 5 years 10 weeks ago
foreach 1.3.0 6 years 42 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)