foreach (1.4.2)

12 users

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.

Maintainer: Revolution Analytics
Author(s): Revolution Analytics, Steve Weston

License: Apache License (== 2.0)

Uses: codetools, iterators, randomForest
Enhances: RUnit, doMC, doParallel
Reverse depends: alineR, BANFF, bcp, caret, clustvarsel, DNMF, doRNG, ezsim, fdasrvf, flip, GA, gam, gamsel, GenCAT, glmnet, hdlm, hzar, icenReg, jaatha, lfe, localgauss, MetaPCA, MetaQC, missForest, Morpho, parfossil, PAWL, penDvine, permGPU, perspectev, PortfolioAnalytics, QuantumClone, randomGLM, RbioRXN, remote, Rlof, sdcTarget, SDDE, SGP, sms, spacom,, StAMPP, survSNP, tsDyn, turboEM, unbalanced, WGCNA
Reverse suggests: aqp, BayesFactor, Bclim, biganalytics, caret, cMonkey, data.tree, dcGOR, DEoptim, DiceKriging, diveRsity, dnet, dplR, EGRETci, evolqg, FinancialInstrument, fitTetra, fxregime, GA, gam, ggmcmc, glmnet, GMCM, harvestr, HMPTrees, imputation, Interatrix, iterators, itertools, kaps, lava, msm, MSToolkit, neuroim, pec, phenex, plyr, polywog, protr, ripa, SpatPCA, sperich, strucchange, tmlenet, treatSens
Reverse enhances: itertools

Released over 1 year ago.

8 previous versions



  4.6/5 (10 votes)


  4.0/5 (9 votes)

Log in to vote.


No one has written a review of foreach yet. Want to be the first? Write one now.

Related packages: doSNOW, multicore, snow, snowfall, doMC, RInside, OpenCL, doSMP, dclone, BARD, bcp, biglm, bigmemory, biopara, bnlearn, caret, ccems, data.table, ff, fork(20 best matches, based on common tags.)

Search for foreach on google, google scholar, r-help, r-devel.

Visit foreach on R Graphical Manual.