ch_rfa_extractamax {CSHShydRology} | R Documentation |
Extracts the annual maxima of a daily time series
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", ...)
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 |
Returns a data frame containing the annual (Monthly) maxima, the date and the number of observations during the year.
Martin Durocher
out <- ch_rfa_extractamax(flow ~ date, CAN01AD002, tol = 350)
head(out)