[R] Calculate a mean for several months for several years

saba Sa-Ba at gmx.net
Tue Feb 22 01:07:21 CET 2011


Hello everyone,

I have a dataset with 3 colums (Year, Month, MeanTemp). Now I would like to
calculate the average of the mean temperature for the summer months (Juli,
August, September) for each of the 20 years.

I'm sure it's somehow possible with a loop, but all I tried so far didn't
worked and by the time I spent looking for a solution I would have even be
faster doing this in excel!!!


Any help is greatly appreciated!!!
Cheers
Sandra
-- 
View this message in context: http://r.789695.n4.nabble.com/Calculate-a-mean-for-several-months-for-several-years-tp3318363p3318363.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list