powered by
Find the rolling maximum in `x` with span `n`
rollmax(x, n)
Numeric vector
Integer span
The maximum value of `x` with span `n`
# NOT RUN { rollmax(c(1,2,3), 2) ## c(2,3,3) # }
Run the code above in your browser using DataLab