Learn R Programming

hydropeak (version 0.1.2)

mefr: MEFR - Mean Flow Fluctuation Rate (Metric 3)

Description

The mean flow fluctuation rate (MEFR, unit: \(m^3/s^2\)) is calculated by the event amplitude divided by the number of time steps (duration) within an event. Given an event with equal flow trend, amplitude and duration are computed. From these metrics the mean flow fluctuation rate is calculated and returned.

Usage

mefr(x)

Value

Returns a numeric value which is the mean flow fluctuation rate computed by the event amplitude amp() divided by the number of time steps dur(). If a data frame containing NA

flow rates (Q) is given, NA is returned.

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, ])
mefr(Q)

Run the code above in your browser using DataLab