longest_low_flow_duration: Longest Low Flow Duration

Description Usage Arguments Value Examples

Description

Compute the longest continuous period during which flow is at or below a given threshold.

Usage

1

Arguments

ts

A time series of class xts.

lt

The lower flow threshold used to compute duration.

which

Logical: If TRUE, return the index locations of the duration instead of the count.

Value

The duration of the longest period where flow is at or below the threshold, in a format dependent on the value of index(ts).

Examples

1
2
3
data(siouxcity)
longest_low_flow_duration(siouxcity['2006-06/2007-06'], 18000)
longest_low_flow_duration(siouxcity['2006-06/2007-06'], 18000, which = TRUE)

mkoohafkan/flowregime documentation built on May 23, 2019, 2:02 a.m.