annualExtremes {discharge} | R Documentation |
Calculate annual extreme flows.
Description
Calculates annual extreme events for all years in the series. By default, the function finds annual extreme discharge in streamflow
object, but any matrix or data.frame
may be used.
Usage
annualExtremes(x,data.col=NULL, year.col=NULL, moving.avg=FALSE)
Arguments
x |
Object from which to extract extremes. Should be of class |
data.col |
Optional. If input is a matrix or |
year.col |
Optional. If input is a matrix or |
moving.avg |
Logical; defaults to FALSE. Can be specified TRUE to use 7-day moving average discharge when input is of class " |
Value
A list
with items
annual.max |
Matrix giving maximum flow for each year in series. Each row contains the maximum values and all corresponding variables from that observation. |
annual.min |
Matrix giving minimum flow for each year in series. Each row contains the minimum values and all corresponding variables from that observation. |
Examples
data(sycamore)
sycamore.flows<-asStreamflow(sycamore,river.name="Sycamore Creek")
syc.extremes<-annualExtremes(sycamore.flows)
names(syc.extremes)
syc.extremes$annual.max[1:3,]