How to compute an average year on time series ?
Given your data are in obj, did you try mean.yrs = aggregate(obj, "year", mean) ?
On 06/27/2013 10:56 AM, Nicolas Bories wrote:
Dear all, I'm working on EVI-MODIS time series with the R package spacetime. I have 10 years of data. I want to compute an average year for each pixel. How can I do this ? The goal is to compare for each pixel and for specific years the EVI-MODIS variations and average year variations. I saw the method aggregate(x, by, FUN = mean, ..., simplify = TRUE) but I didn't manage to get an average year. Thanks in advance for any suggestions ! Nicolas. [[alternative HTML version deleted]]
_______________________________________________ R-sig-Geo mailing list R-sig-Geo at r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-geo
Edzer Pebesma Institute for Geoinformatics (ifgi), University of M?nster Weseler Stra?e 253, 48151 M?nster, Germany. Phone: +49 251 83 33081, Fax: +49 251 8339763 http://ifgi.uni-muenster.de