minmax_run: Running min/max

View source: R/RcppExports.R

minmax_runR Documentation

Running min/max

Description

min_run calculates running minimum-maximum on given x numeric vector, specified k window size.

Usage

minmax_run(x, metric = "min", na_rm = TRUE)

Arguments

x

(vector, data.frame, matrix, xts, grouped_df)
Input in runner custom function f.

metric

character what to return, minimum or maximum

na_rm

logical single value (default na_rm = TRUE) - if TRUE sum is calculating excluding NA.

Value

list.


runner documentation built on May 29, 2024, 10:22 a.m.