mov.max: Calculate the moving maximum. For compatibility only.

View source: R/mov.r

mov.maxR Documentation

Calculate the moving maximum. For compatibility only.

Description

Calculate the moving maximum. For compatibility only.

Usage

mov.max(x, k, shift = "centre")

Arguments

x

A vector to calculate moving maximum

k

The moving windows

shift

if shift = "centre", then values are shifted to centre. if shift = "begin", then values are at begin of period. if shift = "end", then values are at end of period. The default value (centre) will be used if shift is other value.

Value

The moving maximum of vector x at moving windows k


weaana documentation built on Nov. 5, 2025, 6:08 p.m.