Learn R Programming

lfstat (version 0.9.12)

meanflow: Mean flow

Description

Calculates the mean flow of an object of class 'lfobj'.

Usage

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

Value

A length one vector giving the mean flow for the whole series or the specified year. If yearly is true, a vector of the annual mean flows is returned. If break days are specified, the values are separated per season.

Arguments

lfobj

An object of class "lfobj"

year

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

monthly

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

yearly

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

breakdays

A vector of break days if the mean flow should be calculated for different seasons.

na.rm

Should missing values be ignored?

Author

Daniel Koffler and Gregor Laaha

Details

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

References

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

See Also

MAM

Examples

Run this code
data(ngaruroro)
meanflow(ngaruroro)
meanflow(ngaruroro, breakdays = c("01/11","01/05"))
meanflow(ngaruroro, year = 1991)

Run the code above in your browser using DataLab