Learn R Programming

EGRET (version 2.3.0)

mergeReport: Merge Sample and Daily Data into EGRET object

Description

Merges the flow data from the daily record into the sample record, then creates a named list with the Daily, Sample, and INFO dataframe. The Sample dataframe in the global enviornment does not update with the flow information. To extract the new Sample dataframe, use the command: Sample <- eList$Sample.

Usage

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

Arguments

INFO
dataframe containing the INFO dataframe
Daily
dataframe containing the daily data
Sample
dataframe containing the sample data
surfaces
matrix returned from modelEstimation. Default is NA.
interactive
logical Option for interactive mode. If true, there is user interaction for error handling and data checks.

Value

  • eList named list with Daily, Sample, and INFO dataframes, along with the surfaces matrix. Any of these values can be NA, not all EGRET functions will work with missing parts of the named list eList.

See Also

readNWISDaily, readNWISSample

Examples

Run this code
siteNumber <- '01594440'
pCode <- '01075'
Daily <- readNWISDaily(siteNumber,'00060', '1985-01-01', '1990-03-31')
Sample <- readNWISSample(siteNumber,pCode, '1985-01-01', '1990-03-31')
INFO <- readNWISInfo(siteNumber,pCode,interactive=FALSE)
eList <- mergeReport(INFO, Daily, Sample)
Sample <- eList$Sample

Run the code above in your browser using DataLab