Learn R Programming

lfstat (version 0.9.4)

Qxx: Qxx, Q95, Q90, Q70

Description

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

Usage

Qxx(lfobj, Qxx, year = "any", monthly = FALSE, yearly = FALSE, breakdays = NULL, na.rm = TRUE)
Q95(lfobj, year = "any", monthly = FALSE, yearly = FALSE, breakdays = NULL, na.rm = TRUE)
Q90(lfobj, year = "any", monthly = FALSE, yearly = FALSE, breakdays = NULL, na.rm = TRUE)
Q70(lfobj, year = "any", monthly = FALSE, yearly = FALSE, breakdays = NULL, na.rm = TRUE)

Arguments

lfobj
An object of class "lfobj"
Qxx
The quantile to calculate, e.g. 70 would refer to Q70
year
The year for which the Q95 should be computed. If hyearstart != 1 the Q95 is calculated for the hydrological year! "any" means the whole series should be taken.
monthly
logical - Should the Q95 be calculated separately for every month?.
yearly
logical - If TRUE, the Q95 is calculated for each hydrological year separately.
breakdays
A vector of breakdays if the Q95 should be calculated for different seasons.
na.rm
Should NA's be ignored?

Value

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

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.

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

Run this code
data(ngaruroro)
Q95(ngaruroro)
Q95(ngaruroro, breakdays = c("01/11","01/05"))
Q95(ngaruroro, year = 1991)
#Calculate Q99
Qxx(ngaruroro, Qxx = 99)

Run the code above in your browser using DataLab