amp | R Documentation |
The amplitude (AMP, unit: m^3/s) of an event is defined as the difference between the flow maximum (Q_max) and the flow minimum (Q_min). Given an event with equal flow trend, the amplitude is computed and returned.
amp(x)
x |
Data frame (time series) from an event with equal flow trend. The
data frame must contain a date-time column ( |
Returns a positive numeric value which is the difference of
max(x$Q)
and min(x$Q)
of an event. If a data frame containing
NA
flow rates (Q
) is given, NA
is returned.
data(Q) Q <- flow(Q[3:4, ]) amp(Q)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.