Skip to contents

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.


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



dataframe metadata about the Sample and Daily data frames.


dataframe containing the daily discharge data


dataframe containing the sample data


matrix returned from modelEstimation. Default is NA.


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


logical deprecated. Use 'verbose' instead


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


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.


siteNumber <- '01491000'
pCode <- '00631'
# \donttest{
Daily <- readNWISDaily(siteNumber,'00060', '1984-10-01', '')
#> There are 14374 data points, and 14374 days.
Sample <- readNWISSample(siteNumber,pCode, '1984-10-01', '')
#> Warning: NWIS qw web services are being retired.
#> Please see vignette('qwdata_changes', package = 'dataRetrieval')
#> for more information.
#> More than one medium_cd returned
INFO <- readNWISInfo(siteNumber,pCode,interactive=FALSE)
eList <- mergeReport(INFO, Daily, Sample)
#> There are 153 duplicated Sample dates.
Sample <- eList$Sample

# Create eList with no water quality data:

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

# }