
Last chance! 50% off unlimited learning
Sale ends in
mmv
. Simply takes a vector
(x
) of values and rolls over them element wise by windows
.
Returns a vector of maximum mean values for each window. NA
s are not
ignored.
mmv2(x, windows)
length(windows)
.
x <- rnorm(100, 500, 200)
mmv2(x, windows = c(5, 10, 20))
Run the code above in your browser using DataLab