Re: [R] Help with data containing date

2009-09-09 Thread Gabor Grothendieck
Just one other addition. If by monthly summary you mean a summary that has an entry for each year/month combo rather than just one entry for all Januaries, one entry for all Februaries etc. then try this which works in both the Date and chron cases: aggregate(z, as.yearmon, mean) On Tue, Sep

[R] Help with data containing date

2009-09-08 Thread Subodh Acharya
Hello Everyone,I think this is a very simple problem, I have been struggling with it for a few days now. I have a 10-year daily data in the following format. Date ABC D E 1978-10-22 18 20.64 0.0 0.176 -1.76 1978-10-23 15 17.06 0.4

Re: [R] Help with data containing date

2009-09-08 Thread Gabor Grothendieck
Try this: Lines - Date ABC D E 1978-10-22 18 20.64 0.0 0.176 -1.76 1978-10-23 15 17.06 0.4 0.147 2.52 1978-10-243 7.588 0.0 0.068 -6.86 1978-10-259 11.491 0.0 0.102-1.01 1978-10-26 13 14.98 1.4