foreach: Foreach looping construct for R

並列処理

> library(foreach)

バージョン: 1.4.2


関数名 概略
foreach foreach
foreach-ext Foreach Extension Functions
foreach-package The Foreach Package
getDoParWorkers Functions Providing Information on the doPar Backend
getDoSeqWorkers Functions Providing Information on the doSeq Backend
registerDoSEQ registerDoSEQ
setDoPar setDoPar
setDoSeq setDoSeq

foreach

Arguments

  • ...
  • .combine... cbind, rbind, list 返り値の扱いを指定
  • .init
  • .final
  • .inorder
  • .multicombine
  • .maxcombine
  • .errorhandling
  • .packages
  • .noexport
  • .verbose
  • obj
  • e1
  • e2
  • ex
  • cond
  • n
> times(3) %do% rnorm(1)
Error in e$fun(obj, substitute(ex), parent.frame(), e$data): obj must be a foreach object

参考