extracting columns from a ts series
Hi Uwe
For Dec columns use window(upwell, start=c(1984, 12), frequency=1)
This works OK But the other formula not. Maybe is my fault, I was not clear. What I need is: (Dec(t-1)+Jan(t)+Feb(t)+March(t))/4 With your help I did the following: - I extracted each series as you mentioned above, then I convert them this way: dec<- window(upwell, start=c(1984, 12), frequency=1) d<-dec[c(1:16)] and so on with Jan, Feb, March Then: wintermean<-(d+j+f+m)/4 And.. Goal! Maybe is long, long walk, but it works Cheers, Antonio Antonio Rodr?guez Verdugo C.I.C.E.M. "Agua del Pino" Delegacion Provincial de Agricultura y Pesca P.O. Box 104 21071 HUELVA (Spain) -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._