Skip to content
Prev 308994 / 398503 Next

parallel processing with foreach

It seems you don't quite understand how foreach works. foreach (..)
%dopar% { ... } takes the last value from each of the second {...}
evaluations and feeds them to the .combine function (in your case
rbind()). Since your last call in the %dopar% {...} block is assign(),
you are not getting anything meaningful.

Make the last value a vector that you want to be "rbind-ed" to the result.

HTH,

Peter
On Thu, Oct 25, 2012 at 1:47 AM, pxs101220 <pxs101220 at utdallas.edu> wrote: