[R-sig-Geo] elegant way to processing several loops in the same time

Carson Farmer carson.farmer at gmail.com
Thu Sep 2 16:35:05 CEST 2010


Gianni,

Have a look at the foreach package from REvolution Analytics. This
lets you run each loop of a for loop on a separate processor.
I used it for some bootstrapping work a while back and it works really
nicely and simply:

http://www.carsonfarmer.com/?p=668

Carson

On 2 September 2010 15:23, gianni lavaredo <gianni.lavaredo at gmail.com> wrote:
> Dear Researchers,
>
> i am analyzing statistics of several grids image (i.e. 3 patch: A1, A2, A3)
> for my work with 4 resolution scale (0.5,1.0,1.5,2.0). This take a lot of
> time. I am asking about reference and web link to learn how I can run in the
> same time the same loop for the patch A1, A2 and A3. I open in the same time
> three windows of R but It's not elegant.
>
> Thanks in advance
> Gianni
>
>        [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>



-- 
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation
National University of Ireland, Maynooth,
http://www.carsonfarmer.com/



More information about the R-sig-Geo mailing list