This function accepts a data frame that contains a column named "discharge" and calculates FH10; Flood frequency. Compute the average number of flow events with flows above a threshold equal to median of the annual minima for the entire flow record. FH10 is the average (or median-Use Preference option) number of events (number of events/year-temporal).
data frame containing a "discharge" column containing daily flow values
string containing a "mean" or "median" preference
fh10 numeric value of FH10 for the given data frame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.