TrendRunmed {greenbrown} | R Documentation |
The function computes a non-linear trend based a running median.
TrendRunmed(Yt, k = NULL, ...)
Yt |
univariate time series of class |
k |
integer width of median window; must be odd. If NULL a window size of 20 years (i.e. frequency * 20) will be used. |
... |
additional arguments (currently not used) |
The function returns a list of class "Trend".
Matthias Forkel <matthias.forkel@geo.tuwien.ac.at> [aut, cre]
# load a time series of NDVI (normalized difference vegetation index) data(ndvi) plot(ndvi) # calculate trend on mean annual NDVI values trd <- TrendRunmed(ndvi) trd plot(trd)