Re: [R] Using zoo() to aggregate daily data to monthly means

2009-12-22 Thread D Kelly O'Day
Z Thanks. I new I was missing something! Kelly Achim Zeileis wrote: > > On Tue, 22 Dec 2009, D Kelly O'Day wrote: > >> >> I am trying to get monthly means for a daily data series using zoo(). I >> have >> found an odd problem, that seems to be caused by zoo()'s handling of leap >> years. >

Re: [R] Using zoo() to aggregate daily data to monthly means

2009-12-22 Thread Achim Zeileis
On Tue, 22 Dec 2009, D Kelly O'Day wrote: I am trying to get monthly means for a daily data series using zoo(). I have found an odd problem, that seems to be caused by zoo()'s handling of leap years. It's not really zoo's odd handling, but yours ;-) More seriously, do not use ts() with eithe

[R] Using zoo() to aggregate daily data to monthly means

2009-12-22 Thread D Kelly O'Day
I am trying to get monthly means for a daily data series using zoo(). I have found an odd problem, that seems to be caused by zoo()'s handling of leap years. Here's my R script with 2 methods (freq=365, 366) for aggregating the daily data to monthly series: library(zoo) J_link <- "http://www.ij