dur: DUR - Duration (Metric 4)

View source: R/metrics.R

durR Documentation

DUR - Duration (Metric 4)

Description

The duration of an event is specified as the number of consecutive time steps with equal flow trend.

Usage

dur(x)

Arguments

x

Data frame (time series) from an event with equal flow trend. The data frame must contain a date-time column (Time) and a flow rate column (Q) and must be in a compatible format. (see flow()).

Value

Returns an integer value which is the number of consecutive time steps.

Examples

data(Q)
Q <- flow(Q[3:4, ])
dur(Q)

hydropeak documentation built on Nov. 16, 2022, 9:06 a.m.