Description Usage Arguments Value Examples
View source: R/RProjects/HITHATStats/R/ma41.45.R View source: R/ma41.45.R
This function accepts a data frame that contains columns named "discharge" and "year_val" and a value "drain_area" containing the drainage area (in square miles) and calculates MA41; Annual runoff. Compute the annual mean daily flows. MA41 is the mean of the annual means divided by the drainage area (cubic feet per second/square mile-temporal). MA42; Variability across annual flows. MA42 is the maximum annual flow minus the minimum annual flow divided by the median of mean annual flows (dimensionless-spatial). MA43; Variability across annual flows. Compute the first (25th percentile) and third (75th percentile) quartiles and the 10th and 90th percentiles for the annual means (every year in the flow record). MA43 is the third quartile minus the first quartile divided by the median of the annual means (dimensionless-spatial). MA44; Variability across annual flows. Compute the first (25th percentile) and third (75th percentile) quartiles and the 10th and 90th percentiles for the annual means (every year in the flow record). MA44 is the 90th percentile minus the 10th percentile divided by the median of the annual means (dimensionless-spatial). MA45; Skewness in the annual flows. MA45 is the mean of the annual flow means minus the median of the annual means divided by the median of the annual means (dimensionless-spatial).
1 | ma41.45(qfiletemp, drain_area)
|
qfiletemp |
data frame containing a "discharge" column containing daily flow values |
drain_area |
numeric containing the drainage area of the selected site |
ma41.45 list of MA41-MA45 for the given data frame
1 2 3 | qfiletempf<-sampleData
drain_area<-56.5
ma41.45(qfiletempf,drain_area)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.