ratio | R Documentation |
The metric flow ratio (RATIO) is defined as the flow maximum divided by the flow minimum, \frac{Q_{max}}{Q_{min}}. Given an event with equal flow trend, the flow ratio is computed and returned.
ratio(x, event_type)
x |
Data frame (time series) from an event with equal flow trend. The
data frame must contain a date-time column ( |
event_type |
Numeric value which specifies the event type. See
|
Returns a numeric value which is the flow ratio computed by
max(x$Q)
divided by min(x$Q)
. If a data frame containing
NA
flow rates (Q
) is given, NA
is returned.
data(Q) Q <- flow(Q[3:4, ]) ratio(Q, event_type(Q))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.