Skip to content
Prev 273993 / 398506 Next

how to calculate the statistics of a yearly window with a rolling step as 1 day?

On Mon, Oct 10, 2011 at 2:55 PM, ecoc <liting231 at gmail.com> wrote:
Fill in the missing days with NAs using zoo FAQ 15 or otherwise and
then use rollapply(z, 365, f, ...whatever...)  such that your function
f first removes any NAs.