time_to_rise: Time To Rise

Description Usage Arguments Value Examples

Description

Compute the time for flow to rise up to or above a given threshold.

Usage

1
time_to_rise(ts, ut, lt, which = FALSE)

Arguments

ts

A time series of class xts.

ut

The upper flow threshold for which the time to rise is computed. If omitted, the maximum flow of the series is used.

lt

The lower flow threshold from which to start computing the time to rise. If omitted, the minimum flow of the series is used.

which

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

Value

The time to rise, in a format dependent on the value of index(ts).

Examples

1
2
3
4

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