akq_summaryfilter: Filter the Summary Table from Asquith-Knight Discharge Decay...

Description Usage Arguments Value Author(s) See Also Examples

Description

Apply a filter to the summary table from Asquith–Knight discharge decay analyses to get alternative lists of site numbers by processing the summary tables returned by akqdecay for a sequence of USGS streamgages contained within the R environment that has been previously populated by fill_akqenv. The filter is built around only one filter operation per pass. Thus, if a combination of say begyr and endyr is desired, users will have to build a post-processing intersect() operation themselves on the returned sites.

Usage

1
akq_summaryfilter(akqenv, mindv=NA, begyr=NA, endyr=NA, silent=FALSE, ...)

Arguments

akqenv

The R environment populated by fill_akqenv. This argument can also be an R list directly from akqdecay; special accommodation is made;

mindv

The minimum number of daily values to compare to the total_count;

begyr

The minimum (beginning) year to compare to the beg_year;

endyr

The maximum (ending) year to compare to the end_year;

silent

Suppress informative calls to message(); and

...

Additional arguments to pass (see source code to ascertain flexible usage).

Value

An vector for the site values passing the filter.

Author(s)

W.H. Asquith

See Also

akq_summary

Examples

1
2
3
4
sites <- c("01396660", "01400500") # Two USGS streamgages in New Jersey
njdv  <- new.env(); fill_dvenv(sites, envir=njdv)  # 01396660 first year 1977
njAKQ <- new.env(); fill_akqenv(dvenv=njdv, envir=njAKQ) # 01400500 first year 1903
print(akq_summaryfilter(njAKQ, mindv=18250))  # only 01400500 is returned

wasquith-usgs/akqdecay documentation built on Nov. 9, 2020, 1:13 p.m.