dur {hydropeak}R 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)

[Package hydropeak version 0.1.2 Index]