Learn R Programming

CSHShydRology (version 1.4.2)

ch_sh_get_amax: Extracts annual maximum values from ECDE dataframe.

Description

Extracts annual maximum values, the date of occurrence, the day of year, and the completeness from ECDE dataframe. Uses functions from timeDate ( as.timeDate, dayOfYear).

Usage

ch_sh_get_amax(df)

Value

Returns a dataframe with the following variables

year

annual maximum

date of annual maximum

day of year of annual maximum

days

number of days with observations

Arguments

df

A dataframe of daily streamflow data from ECDE

Author

Paul Whitfield

See Also

ch_read_ECDE_flows ch_circ_mean_reg

Examples

Run this code
data(CAN05AA008)
amax <- ch_sh_get_amax(CAN05AA008)
str(amax)

Run the code above in your browser using DataLab