Learn R Programming

FlowScreen (version 2.0)

pk.max.doy: Day of year for annual maximum series

Description

This function returns the day of the hydrologic year for each annual maximum flow.

Usage

pk.max.doy(TS)

Value

Returns a numeric vector containing the day of the (hydrologic) year for each annual maximum flow. 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 for the annual maximum flow series.

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.doy(cania.ts)
res2 <- screen.metric(res, ylabel = "Day of Year", title = TRUE)

Run the code above in your browser using DataLab