FlowStatsAll: Function to run HIT/HAT statistics for a given data set

Description Usage Arguments Value Examples

View source: R/FlowStats_all.R

Description

This function accepts a data frame of daily flow data and returns a data frame of calculated HIT/HAT statistics

Usage

1
2
  FlowStatsAll(data, drain_area,
    stats = "magStat,flowStat,timStat,rateStat,otherStat,durStat")

Arguments

data

data frame of daily flow data

drain_area

drainage area for a given site

stats

list of requested stat groups

Value

Output data frame of calculated statistics

Examples

1
2
3
4
5
6
drainage_url<-"http://waterservices.usgs.gov/nwis/site/?siteOutput=Expanded&site="
sites<-"02177000"
drain_url<-paste(drainage_url,sites,sep="")
drain_area<-getDrainageArea(drain_url)
qfiletempf<-sampleData
FlowStatsAll(qfiletempf,drain_area,"magStat,flowStat,durStat,timStat,rateStat,otherStat")

jlthomps/EflowStats documentation built on May 19, 2019, 12:48 p.m.