getSampleQ: Get a table of sample times, flows and gage heights

Description Usage Arguments Value

View source: R/sample_flows.R

Description

The table includes QW sample times, as well as any associated gage heights and discharge values associated with the sample. Discharge and gage height are interpolated form the relevant continuous time series for comparison.

Usage

1
2
getSampleQ(site, start, end, maxDiff = 4, method = c("interpolate",
  "closest"), tz = "UTC")

Arguments

site

USGS site number

start

the start date of interest, as a string in the form YYYY-MM-DD

end

the start date of interest, as a string in the form YYYY-MM-DD

maxDiff

the maximum gap, in hours, in the continuous data that will be used for merging. Any gaps greater than this will show NA for the continuous data.

method

the method to use for merging the continuous data. If "interpolate", the continuous value will be interpolated for the sample time between the time series points immediately preceding and following. If "closest", the continuous point nearest the sample time will be used.

tz

the time zone for output, e.g. "America/Chicago", "America/New_York", see OlsonNames() for more details

Value

a data frame of QW sample times, streamflow, and discharge merged with continuous streamflow and discharge for comparison.


PatrickEslick/CWQkitr documentation built on Dec. 12, 2019, 12:55 a.m.