Re: [R] extract certain months toyears (zoo)

2009-01-23 Thread Gabor Grothendieck
Please read the last line to every post on r-help particularly noting the reproducible part. Assuming you have a series such as z below and want June, July and August of each year: > library(zoo) > set.seed(1) > z <- zoo(rnorm(25), as.yearmon("2000-01") + 0:24/12) > z[format(time(z), "%m") %in% c

[R] extract certain months toyears (zoo)

2009-01-23 Thread Bastian Pöschl
Dear useRs and developeRs, In my diploma thesis I work with a daily time series of glacier runoff data. I did already aggregate them to monthly means etc. Now i want to use just the summer values (I am indecisive by now what that means, but let's make it easy and use months like June). Is there a