all_metrics | R Documentation |
Given an event with equal flow trend, all metrics implemented in the package hydropeak are computed and combined to a data frame. It includes also an identifier of the gauging station provided by the user and the starting time of the event.
all_metrics(x, id, event_type)
x |
Data frame (time series) from an event with equal flow trend. The
data frame must contain a date-time column ( |
id |
Character string which refers to the identifier of the gauging station (in Austria: HZBCODE). |
event_type |
Numeric value which indicates the event type. By using
|
A data frame including all computed metrics, IDs of gauging stations,
event type (see event_type()
for an overview of
possible event types), and starting time of an event x
.
Included metrics are amp()
, mafr()
,
mefr()
, dur()
, ratio()
.
data(Q) # decreasing event: Q4 <- flow(Q[3:4, ]) all_metrics(Q4, id = Q$ID[1], event_type = 4) all_metrics(Q4, id = Q$ID[1], event_type = event_type(Q4)) # increasing event: Q2 <- flow(Q[486:487, ]) all_metrics(Q2, id = Q$ID[1], event_type = 2) all_metrics(Q2, id = Q$ID[1], event_type = event_type(Q2)) # constant event (at beginning or after NA event): Q0 <- flow(Q[1:3, ]) all_metrics(Q0, id = Q$ID[1], event_type = 0) all_metrics(Q0, id = Q$ID[1], event_type = event_type(Q0))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.