powered by
Extracts the annual maxima of a daily time series
ch_rfa_extractamax(x, ...)# S3 method for formula ch_rfa_extractamax(form, x, tol = 0, ...)# S3 method for default ch_rfa_extractamax(x, tol = 0, nlab = "n", ylab = "yy", ...)
# S3 method for formula ch_rfa_extractamax(form, x, tol = 0, ...)
# S3 method for default ch_rfa_extractamax(x, tol = 0, nlab = "n", ylab = "yy", ...)
Returns a data frame containing the annual (Monthly) maxima, the date and the number of observations during the year.
Data. If no formula is passed, the first column must be the value and the second the date.
Other parameters.
Formula of the form value ~ date that specifies the variable from which the annual maximums are extracted and a date variable.
value ~ date
Filter the years having less than tol days.
tol
Names for the added columns representing respectively the number of yearly observations and the year. If set to NULL the given column is not added.
NULL
Martin Durocher
out <- ch_rfa_extractamax(flow ~ date, CAN01AD002, tol = 350) head(out)
Run the code above in your browser using DataLab