MAMn: Calculate mean annual minimum n-day flows

Description Usage Arguments Value Author(s) See Also Examples

View source: R/MAMn.R

Description

This function calculates the calculates the mean annual minimum n-day flow by calendar year or by hydrologic year. This function can also be used to find the annual minimum series by setting n=1.

Usage

1
MAMn(TS, n = 7, by = "hyear")

Arguments

TS

output from create.ts containing a data.frame of flow time series

n

Numeric value for the number of days in the n-day flow period. Default is 7.

by

Character string indicating whether to use hydrologic years or calendar years. Default is "hyear". Other option is "year".

Value

Returns a numeric vector containing the calculated MAM n-day flow for each year in the input time series. The "times" attribute provides the corresponding year for each calculated value.

Author(s)

Jennifer Dierauer

See Also

screen.metric

Examples

1
2
3
4
5
6
7
8
9
data(cania.sub.ts)

# find the annual minimum series and plot 
res <- MAMn(cania.sub.ts, n=1)
res2 <- screen.metric(res, "Q (m3/s)")

# do the same with MAM 7-day flow instead of annual minimum
res <- MAMn(cania.sub.ts, n=7)
res2 <- screen.metric(res, "Q (m3/s)")

Example output



FlowScreen documentation built on May 2, 2019, 1:09 p.m.

Related to MAMn in FlowScreen...