U_periody: Max. Amount of Days under Value U within a specific...

View source: R/U_periody.R

U_periodyR Documentation

Max. Amount of Days under Value U within a specific (calendrical/hydrological) Year

Description

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

Usage

U_periody(U, station, data, year, h)

Arguments

U

numeric; Limit Value.

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.

year

character; E.g. "2003". Year of interest-

h

logical; Hydrological year. If h=TRUE; hydrological year November - October (given year/given year +1). If h=FALSE: calendrical year: January- December.

Value

Function returns longest time measured under Value U in specific year.

Examples

## Not run:  U_periody(80, "COCHEM", data, "2003", h=T)


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