Learn R Programming

hydropeak (version 0.1.2)

dur: 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)

Value

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

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()).

Examples

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

Run the code above in your browser using DataLab