This function accepts a data frame that contains columns named "discharge" and "year_val" and calculates ML21, variability across annual minimum flows. Compute the mean and standard deviation for the annual minimum flows. ML21 is the standard deviation times 100 divided by the mean (percent-spatial).
data frame containing a "discharge" column containing daily flow values
ml21 numeric value of ML21 for the given data frame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.