Learn R Programming

FlowScreen (version 2.0)

pk.max: Annual maximum series

Description

This function returns the annual maximum series from a daily streamflow time series.

Usage

pk.max(TS)

Value

Returns a numeric vector containing the annual maximum flow (m3/s) series, by hydrologic year. The "times" attribute contains the hydrologic year for each element in the vector.

Arguments

TS

data.frame of streamflow time series loaded with read.flows.

Author

Jennifer Dierauer

See Also

See create.ts to format the input flow series.

See pk.max.doy to find the day of year for each annual maximum flow event.

Examples

Run this code
data(caniapiscau)
cania.ts <- create.ts(caniapiscau, hyrstart = 4)
cania.ts <- drop.years(cania.ts)
cania.ts <- set.plot.titles(cania.ts, 
title.elements = c("StationID", "StnName", "StateProv"))

res <- pk.max(cania.ts)
res2 <- screen.metric(res, ylabel = "Q (m3/s)", title = TRUE)

Run the code above in your browser using DataLab