akq_na: Check within an Environment for NA (Missing) Daily...

Description Usage Arguments Value Author(s) See Also Examples

Description

This function has two effects depending on the anticipated type, which means the contents, for an R environment. First, check by streamgage for exclusively one NA stored in the R environment created by fill_akqenv and return those site numbers. Second, check by streamgage for zero rows of the daily-value data.frame created by fill_akqenv and return those site numbers.

Usage

1
akq_na(akqenv, silent=FALSE, ...)

Arguments

akqenv

The R environment previously populated by fill_akqenv;

silent

Suppress informative calls to message(); and

...

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

Value

An R vector containing the sites for which the entry akqenv is NA.

Author(s)

W.H. Asquith

See Also

fill_akqenv

Examples

1
2
3
4
5
6
sites <- c("05403500", "05405000") # Two USGS streamgages in Wisconsin
WisExample <- new.env(); fill_dvenv( sites,              envir=WisExample,
                                     sdate="1945-01-01", edate="2014-12-31")
WisAKQ <- new.env(); fill_akqenv(dvenv=WisExample, envir=WisAKQ)
WisAKQ$"99999999" <- NA; # insert a fake site with simple NA
print(akq_na(WisAKQ)) #

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