Description Usage Arguments Details Value References Examples
View source: R/calc_exceedance.R
Calculates the exceedance probability, or the flow-duration percentile.
1 | calc_exceedance(x, ties = "min")
|
x |
a vector of values. Missing values are left as is. If you want to treat as zero, replace with 0. if you want to treat them as the smallest value, replace with -Inf before applying the function. |
ties |
How to handle ties in ranked values. One of |
x
must be a vector of positive numeric values. The exceedance probability is calculated as:
P = \fracmn+1
where
\mjseqnP is the exceedance probability,
\mjseqnm is the descending rank value,
\mjseqnn is the total number of values
A vector of length x of the exceedance probability for each value of x.
Searcy, J. C. (1959). Manual of hydrology, 2, Low flow techniques, flow duration curves. US Geol. Surv. Water Supply Pap, 1542.
1 2 | x <- seq(1:100)
calc_exceedance(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.