event_type {hydropeak}R Documentation

Event Type

Description

Given a data frame (time series) of equal flow (Q) trend, it is determined whether the flow is increasing or decreasing, constant or if missing values occur. It returns a numeric value which indicates the event type. As the event type is already determined when the change points are computed, this function is mainly used for demonstration purpose or if metrics should be computed individually.

Usage

event_type(x)

Arguments

x

Data frame (time series) from an event with equal flow trend. 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 numeric value which indicates the event type. Event types are defined as follows:

Examples

data(Q)
# decreasing event
Q4 <- flow(Q[3:4, ])
event_type(Q4)

# increasing event
Q2 <- flow(Q[486:487, ])
event_type(Q2)


[Package hydropeak version 0.1.2 Index]