foreach (1.4.3)

12 users

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.

Maintainer: Rich Calaway
Author(s): Rich Calaway [cre], Revolution Analytics [aut, cph], Steve Weston [aut]

License: Apache License (== 2.0)

Uses: codetools, iterators, randomForest
Enhances: RUnit, doMC, doParallel
Reverse depends: alineR, BANFF, bcp, bcRep, biganalytics, 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, s4vd, 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, eyetrackingR, FinancialInstrument, fitTetra, fxregime, GA, gam, ggmcmc, glmnet, GMCM, harvestr, HMPTrees, imputation, Interatrix, iterators, itertools, kaps, lava, msm, MSToolkit, neuroim, pec, phenex, plyr, polywog, protr, ptycho, ripa, SpatPCA, sperich, strucchange, tmlenet, treatSens
Reverse enhances: itertools

Released about 1 month ago.

9 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.