rollmax: Rolling Max

Description Usage Arguments Value Examples

View source: R/dateutils.R

Description

Find the rolling maximum in 'x' with span 'n'

Usage

1
rollmax(x, n)

Arguments

x

Numeric vector

n

Integer span

Value

The maximum value of 'x' with span 'n'

Examples

1
rollmax(c(1,2,3), 2) ## c(2,3,3)

dateutils documentation built on Nov. 10, 2021, 5:09 p.m.