Description Usage Arguments Value Author(s) See Also Examples
Remove from either the environments related to calls to fill_akqenv
or fill_dvenv
a vector of site numbers and return a copy as an R list
. This is a simple function saving marginally on number of lines of code for scripting by the user, but with the invert
logical, flexibility of using akqdecay package is compressed into a simple operation.
1 |
siteNumbers |
A vector of USGS streamgage identification numbers. Any |
envir |
The R |
invert |
Instead of deleting and returning the remainder, with |
... |
Additional arguments to pass (see source code to ascertain flexible usage). |
An R list
is returned. This list needs to be converted back to an environment using list2env
after and not within this function because of memory inflation as R works to contain extra environmental information.
W.H. Asquith
1 2 3 4 5 6 7 8 | 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)
nWisAKQ <- list2env(akq_rm("05405000", WisAKQ))
akq_counts(nWisAKQ) # three columns removed below
# site total_count decreases increases nochanges NAs
# 05403500 17713 8829 6023 2852 9 #
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.