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 1 year 38 weeks ago
foreach 1.4.0 2 years 45 weeks ago
foreach 1.3.5 2 years 50 weeks ago
foreach 1.3.4 2 years 50 weeks ago
foreach 1.3.2 3 years 41 weeks ago
foreach 1.3.0 5 years 21 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)