smooth {eda} | R Documentation |
This function applies the smoothing method 3RSR
to the data in x
.
smooth(x)
x |
a vector or time series |
A vector or time series containing the smoothed values. Note that there are other smoothing methods which provide rather better results.
Tukey, J. W. (1977). Exploratory Data Analysis, Reading Massachusetts: Addison-Wesley.
lowess
.
library(eda)
data(presidents)
presidents[is.na(presidents)] <- 0
plot(presidents)
lines(smooth(presidents))