rollmax {dateutils} | R Documentation |
Rolling Max
Description
Find the rolling maximum in 'x' with span 'n'
Usage
rollmax(x, n)
Arguments
x |
Numeric vector |
n |
Integer span |
Value
The maximum value of 'x' with span 'n'
Examples
rollmax(c(1,2,3), 2) ## c(2,3,3)
[Package dateutils version 0.1.5 Index]