rolling: A function to handle rolling window calculations. This...

Description Usage Arguments Value

View source: R/prep_values.R

Description

A function to handle rolling window calculations. This function was developed to prepare total coliform values for assessment.

Usage

1
rolling(.group, .date, .value, .rolling_days, .min_n, .fun)

Arguments

.group

a vector representing group identifier.

.date

a date vector representing collection dates.

.value

a numeric vector of parameter values.

.rolling_days

a single numeric value indicating the number of days that should be used to create the rolling window.

.min_n

a single numeric value representing the minimum number of samples required.

.fun

a function to summarize the .value within the .rolling_days window.

Value

a data frame.


BWAM/stayCALM documentation built on May 21, 2020, 3:24 p.m.