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

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.