meanflow: Mean flow

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

Calculates the meanflow of an object of class 'lfobj'.

Usage

1
2
meanflow(lfobj, year = "any", monthly = FALSE, yearly = FALSE,
breakdays = NULL, na.rm = TRUE)

Arguments

lfobj

An object of class "lfobj"

year

The year for which the meanflow should be computed. If hyearstart != 1 the meanflow is calculated for the hydrological year! "any" means the whole series should be taken.

monthly

logical - Should the meanflow be calculated separately for every month?.

yearly

logical - If TRUE, the meanflow is calculated for each hydrological year separately.

breakdays

A vector of breakdays if the meanflow should be calculated for different seasons.

na.rm

Should missing values be ignored?

Details

If breakdays is a single day, e.g. "01/06", the start of the hydrological year is taken as the second breakday. If more than two seasons are to be specified, a vector of all breakdays is needed.

Value

A length one vector giving the meanflow for the whole series or the specified year. If yearly is true, a vector of the annual meanflows is returned. If breakdays are specified, the values are separated per season.

Author(s)

Daniel Koffler and Gregor Laaha

References

Gustard, A. & Demuth, S. (2009) (Eds) Manual on Low-flow Estimation and Prediction. Operational Hydrology Report No. 50, WMO-No. 1029, 136p.

See Also

MAM

Examples

1
2
3
4
data(ngaruroro)
meanflow(ngaruroro)
meanflow(ngaruroro, breakdays = c("01/11","01/05"))
meanflow(ngaruroro, year = 1991)

lfstat documentation built on May 2, 2019, 6:07 p.m.