mh20: Function to return the MH20 hydrologic indicator statistic...

Description Usage Arguments Value Examples

View source: R/mh20.R View source: R/RProjects/HITHATStats/R/mh20.R

Description

This function accepts a data frame that contains columns named "discharge" and "year_val" and calculates MH20, specific mean annual maximum flow. MH20 is the mean (or median-Use Preference option) of the annual maximum flows divided by the drainage area (cubic feet per second/square mile-temporal).

Usage

1
  mh20(x, drainarea, pref = "mean")

Arguments

x

data frame containing a "discharge" column containing daily flow values

drainarea

numeric value of drainage area for a site

pref

string containing a "mean" or "median" preference

Value

mh20 numeric value of MH20 for the given data frame

Examples

1
2
3
qfiletempf<-sampleData
drainarea<-56.5
mh20(qfiletempf,drainarea)

jlthomps/EflowStats documentation built on May 17, 2017, 11:26 p.m.