Learn R Programming

RtsEva (version 1.1.0)

empdisl: Empirical Distribution Function

Description

This function calculates the empirical distribution function for a given dataset, with a focus on low values

Usage

empdisl(x, nyr)

Value

A data frame containing the following columns:

emp.RP

Empirical return period

haz.RP

Hazen return period

gumbel

Gumbel frequency

emp.f

Empirical frequency

emp.hazen

Empirical Hazen frequency

Q

Discharge values

Arguments

x

A numeric vector or matrix representing the discharge values.

nyr

An integer representing the number of years.

Examples

Run this code
x <- c(10, 20, 30, 40, 50)
nyr <- 5
empdisl(x, nyr)

Run the code above in your browser using DataLab