zoo_smooth_window(x = NULL, window = 3, f = mean, ...)
Value
zoo object
Arguments
x
(required, zoo object) Time series to smooth Default: NULL
window
(optional, integer) Smoothing window width, in number of cases. Default: 3
f
(optional, quoted or unquoted function name) Name of a standard or custom function to aggregate numeric vectors. Typical examples are mean, max,min, median, and quantile. Default: mean.
...
(optional, additional arguments) additional arguments to f.