This function accepts a data frame that contains a column named "discharge" and calculates the mean (or median - use preference option) of the coefficients of variation (standard deviation/mean) for each year. Compute the coefficent of variation for each year of daily flows. Compute the mean/median of the annual coefficients of variation (percent).
data frame containing a "discharge" column containing daily flow values
string containing a "mean" or "median" preference
ma3 numeric value of MA3 for the given data frame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.