Learn R Programming

EGRET (version 3.0.9)

mergeReport: mergeReport

Description

This function does three things. 1) It transfers the daily discharge value from the Daily data frame to to Sample data frame for those days with samples. 2) It merges the INFO, Daily and Sample data frames to form an eList object, 3) and it prints out a "report" of basic information about the Daily and Sample data frames.

Usage

mergeReport(INFO, Daily, Sample = NA, surfaces = NA, verbose = TRUE,
  interactive = NULL)

Value

eList named list with at least INFO, and Daily data frames. It can also include a Sample data frame.

Arguments

INFO

dataframe metadata about the Sample and Daily data frames.

Daily

dataframe containing the daily discharge data

Sample

dataframe containing the sample data

surfaces

matrix returned from modelEstimation. Default is NA.

verbose

logical specifying whether or not to display summary information on the Daily and Sample dataframes.

interactive

logical deprecated. Use 'verbose' instead

Details

There must be an INFO and a Daily data frame for this function to work. That would be the case for a study of flow only, with no consideration of water quality. If water quality is being considered then INFO, Daily, and Sample all need to be provided in the call to this function.

Note that the Sample dataframe in the global environment does not update with the flow information.

See Also

readNWISDaily, readNWISSample

Examples

Run this code

siteNumber <- '01491000'
pCode <- '00631'
# \donttest{
Daily <- readNWISDaily(siteNumber,'00060', '1984-10-01', '')
Sample <- readNWISSample(siteNumber,pCode, '1984-10-01', '')
INFO <- readNWISInfo(siteNumber,pCode,interactive=FALSE)
eList <- mergeReport(INFO, Daily, Sample)
Sample <- eList$Sample
plot(eList)

# Create eList with no water quality data:

eList <- mergeReport(INFO, Daily, Sample = NA)
plotFour(eList)
# }

Run the code above in your browser using DataLab