Calculation of VCN according to a return period. An adjustment to a Galton distribution (log-normal distribution) is realised.
Functions named calcVCN[k]_[return_period] are also defined for commun indicators.
Usage
calcVCNn(x, k, return_period, ...)
# S3 method for data.frame
calcVCNn(x, k, return_period, ...)
calcVCN10_2(x)
calcVCN10_5(x)
calcVCN10_10(x)
calcVCN30_2(x)
calcVCN30_5(x)
calcVCN30_10(x)
Arguments
- x
numeric vector of VCN of one year
- k
numeric period in days
- return_period
numeric number of years
- ...
further parameters to send to zoo::rollmean
Value
numeric VCN for the given return period
Examples
#! load data
data(L0123001, package = "airGR")
dfQ <- data.frame(DatesR = BasinObs$DatesR, Q = BasinObs$Qls / 1000)
# VCN10 return period of 2 years
calcVCNn(dfQ, 10, 5)
#> Q
#> 0.3385674