TITLE(smooth @@ Median Smoothing)
USAGE(
smooth(x)
)
ARGUMENTS(
ARG(x @@ a vector or time series)
)
DESCRIPTION(
This function applies the smoothing method ITALIC(3RSR)
to the data in LANG(x).
)
VALUE(
A vector or time series containing the smoothed values.
Note that there are other smoothing methods which provide
rather better results.
)
REFERENCES(
Tukey, J. W. (1977).
ITALIC(Exploratory Data Analysis),
Reading Massachusetts: Addison-Wesley.
)
SEEALSO(
LANG(LINK(lowess)).
)
EXAMPLES(
library(eda)
data(presidents)
presidents[is.na(presidents)] <- 0
plot(presidents)
lines(smooth(presidents))
)
