Data is filtered when it is beyond a specified year threshold (e.g. 5 years old). The relative date is based on the newest observation in the data set. Optionally, the maximum flow (Q) record can be retained.
Arguments
- df
a data.frame with at least a date and Q field.
- years
the number of allowed history
- keep_max
Should the largest flow record be kept, even if older then "years"
See also
Other filters:
mad_filter()
,
nls_filter()
,
qva_filter()
,
significance_check()