Re: [R] vectorization of rolling function

2014-12-08 Thread Jeff Newmiller
Please don't post in HTML... you may not recognize it, but the receiving end does not necessarily (and in this case did not) look like the sending end, and the cleanup can impede answers you are hoping to get. In many cases, loops can be vectorized. However, near as I can tell this is an exam

Re: [R] vectorization of rolling function

2014-12-08 Thread Arnaud Duranel
Great, many thanks for your help Jeff. Apologies for the HTML format, I'll be more careful next time. Arnaud On 08/12/2014 08:25, Jeff Newmiller wrote: Please don't post in HTML... you may not recognize it, but the receiving end does not necessarily (and in this case did not) look like the send

[R] vectorization of rolling function

2014-12-06 Thread A Duranel
Hello I use R to run a simple model of rainfall interception by vegetation: rainfall falls on vegetation, some is retained by the vegetation (part of which can evaporate), the rest falls on the ground (quite crude but very similar to those used in SWAT or MikeSHE, for the hydrologists among you). I