Re: [R] foreach(): how to do calculations "between" two foreach loops?

2011-05-12 Thread Steve Lianoglou
Hi, On Wed, May 11, 2011 at 5:44 PM, Marius Hofert wrote: > Dear expeRts, > > is it possible to carry out calculations between different foreach() calls? > As for nested loops, you want to carry out calcuations not depending on the > inner > loop only once and not for each iteration of the inner

[R] foreach(): how to do calculations "between" two foreach loops?

2011-05-11 Thread Marius Hofert
Dear expeRts, is it possible to carry out calculations between different foreach() calls? As for nested loops, you want to carry out calcuations not depending on the inner loop only once and not for each iteration of the innermost loop. Cheers, Marius library(foreach) foreach(i=1:3) %:%