smooth(x)
x |
a vector or time series |
This function applies the smoothing method 3RSR
to x. 3R stands for Repeated running
medians of 3.
A vector or time series containing the smoothed values. Note that there are other smoothing methods which provide rather better results.
Tukey (1977). E.D.A; see ref. in line.
library(eda) data(presidents) presidents[is.na(presidents)] <- 0 plot(presidents) lines(smooth(presidents))