Merge Sample and Daily Data into EGRET object

Share:

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

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
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

## End(Not run)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.