Description Usage Arguments Value Note Author(s) See Also Examples
Fill an R environment
with R data.frames
of daily-mean streamflow for USGS streamgages. This function is a wrapper (abstraction layer) on the dvget
function.
1 2 |
siteNumbers |
A vector of USGS streamgage identification numbers; |
envir |
The R |
sdates |
A vector of starting dates (possibly unique by streamgage) to feed the similarly named argument of |
edates |
A vector of ending dates (possibly unique by streamgage) to feed the similarly named argument of |
flowlos |
A vector of lower streamflow thresholds (likely unique by streamgage) to feed the similar named argument of |
flowhis |
A vector of upper streamflow thresholds (likely unique by streamgage) to feed the similar named argument of |
silent |
Suppress informative calls to |
... |
Additional arguments to pass to control |
An R environment
is returned.
Emergency intervention or other types of bulk filtering on the environment can be accomplished with code like this for an environment named old_dv
:
1 2 3 4 5 |
However, such an operation would be destructive to the old_dv
environment. An independent copy of the environment could first be made:
1 2 3 4 5 6 |
W.H. Asquith
dvget
, akqdecay
, fill_akqenv
, fill_dvpartenv
, dvoverlap
1 2 3 4 5 6 7 8 | ## Not run:
# Six USGS streamgages of the Wolf River in Tennessee
wolfriver <- c("07030392", "07030500", "07031650",
"07031660", "07031700", "07031740")
wolf.env <- new.env() # the standard declaration of an environment
fill_dvenv(wolfriver, envir=wolf.env) # wolf.env now filled with six tables.
# and wolf.env is shown within the Examples of fill_akqenv and fill_dvpartenv. #
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.