Skip to content
Prev 7240 / 15274 Next

Applying function on rolling window basis ** not rollapply() function in zoo

On 01/04/2011 07:52 AM, Bogaso Christofer wrote:
<...>
apply.rolling will use a fixed width and *roll* which is what you 
subject says you want.

?period apply

will apply on a endpoints(time)-based period, like days, months, and 
years, using 'periodicity' in xts.  so, quarterly mean, for example, 
would be period.apply with endpoints on quarters or use apply.quarterly. 
  With period.apply, you can also send in a vector of endpoints, which 
can be arbitrary.

So, I think I already gave you all the information you need to do what 
you want.

  - Brian