fill_tfdcenv: Fill an R Environment with Kendall's Tau Trend Tests of the...

Description Usage Arguments Value Author(s) See Also Examples

Description

Perform tests for monotonic trend for each of 365 probabilities on the flow-duration curve with year for a succession of USGS streamgage identification numbers in an R environment from fill_dvenv. The function fill_tfdcenv populates (fills) with output from fdctrend as another R environment. In source code, this function is structurally almost identical to fill_akqenv.

Usage

1
fill_tfdcenv(sites=NULL, dvenv=NULL, envir=NULL, silent=FALSE, ...)

Arguments

sites

An optional, likely partial, list of sites within dvenv for population into envir. This option means that a massive environment of daily values can be retained in the user's space but Asquith–Knight discharge decay analyses can be restricted to a smaller subset of sites. If sites=NULL, then internally all of the sites within dvenv will be processed, and this would be almost universally the way to use this function;

dvenv

An R environment previously populated by fill_dvenv;

envir

A user created (usually) R environment by new.env();

silent

Suppress informative calls to message(); and

...

Additional arguments to pass to control fdctrend.

Value

This function is used for its side effects on the envir argument but does return a count of the sites processed by fdctrend.

Author(s)

W.H. Asquith

See Also

fdctrend, visFDCtrend, fill_dvenv

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
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.
wolf.fdc <- new.env() # the standard declaration of an environment
fill_tfdcenv(dvenv=wolf.env, envir=wolf.fdc)
# Now try the command "visFDCtrend(wolf.fdc, file="fdc_trend.pdf",las=1)" 
## End(Not run)

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