ExtractAmax: Extracts the Annual maxima of a daily time series

Description Usage Arguments Examples

Description

Returns a dataset containing the annual maximums, the date and the number of observed days during the year.

Usage

1
2
3
4
ExtractAmax(x, ...)

## S3 method for class 'formula'
ExtractAmax(form, x, tol = 0)

Arguments

x

Data containing the date and variable. If a data.frame is passed directly the first column must be the value and the second the date.

form

Formula of the form value ~ date that specifies the variable from which the annual maximums are extracted and a date variable.

tol

Filter the return years a verify that the maxima is computed from at least tol days.

Examples

1
2
3
4
## This function extracts the annual maximum and keep only the years with
## at least 350 days

ExtractAmax(flow~date, flowStJohn, tol = 350)

martindurocher/floodStat documentation built on May 31, 2019, 12:42 a.m.