U_period: Max. amount of days under value U within Time Series

View source: R/U_period.R

U_periodR Documentation

Max. amount of days under value U within Time Series

Description

Function indicates the longest that a certain value (U) was undercut (at a given measuring point of a given river), within the time period of the measurements.

Usage

U_period(U, station, data)

Arguments

U

numeric; Limit Value. Function returns longest time measured under value U.

station

character; Name of the Station e.g. "COCHEM" - must be named equally like list entry in data.

data

list; Contains all stations that the discharge analysis should consider. List can be created by grdc_list. Each entry of the list contains the existing discharge measurements (as numeric) and the corresponding dates (as character) for the station.

Value

Function returns longest time measured under value U.

Examples

## Not run:  U_period(88, "TRIER UP", mosel)


maibrittbergh/dischanalyst documentation built on May 13, 2022, 1:52 a.m.