ch_rfa_extractamax {CSHShydRology} | R Documentation |
Extracts the annual maxima of a daily time series
Description
Extracts the annual maxima of a daily time series
Usage
ch_rfa_extractamax(x, ...)
## S3 method for class 'formula'
ch_rfa_extractamax(form, x, tol = 0, ...)
## Default S3 method:
ch_rfa_extractamax(x, tol = 0, nlab = "n", ylab = "yy", ...)
Arguments
x |
Data. If no formula is passed, the first column must be the value and the second the date. |
... |
Other parameters. |
form |
Formula of the form |
tol |
Filter the years having less than |
nlab , ylab |
Names for the added columns representing respectively
the number of yearly observations and the year.
If set to |
Value
Returns a data frame containing the annual (Monthly) maxima, the date and the number of observations during the year.
Author(s)
Martin Durocher
Examples
out <- ch_rfa_extractamax(flow ~ date, CAN01AD002, tol = 350)
head(out)
[Package CSHShydRology version 1.4.2 Index]