Newer
Older
% Generated by roxygen2 (4.0.2): do not edit by hand
\title{Raw Data Import for Water Quality Portal}
readWQPqw(siteNumbers, parameterCd, startDate = "", endDate = "")
\item{parameterCd}{vector of USGS 5-digit parameter code or characteristicNames.
Leaving this blank will return all of the measured values during the specified time period.}
\item{startDate}{character starting date for data retrieval in the form YYYY-MM-DD. Default is "" which indicates
retrieval for the earliest possible record.}
\item{endDate}{character ending date for data retrieval in the form YYYY-MM-DD. Default is "" which indicates
retrieval for the latest possible record.}
\item{siteNumber}{character site number. This needs to include the full agency code prefix.}
retval dataframe raw data returned from the Water Quality Portal. Additionally, a POSIXct dateTime column is supplied for
start and end times.
Imports data from the Water Quality Portal.
This function gets the data from here: \url{http://www.waterqualitydata.us}. There
are four required input arguments: siteNumber, parameterCd, startDate, and endDate.
parameterCd can either be a USGS 5-digit code, or a characteristic name. The sites can be
either USGS, or other Water Quality Portal offered sites. It is required to use the 'full'
site name, such as 'USGS-01234567'.
\dontrun{
rawPcode <- readWQPqw('USGS-01594440','01075', '', '')
rawCharacteristicName <- readWQPqw('WIDNR_WQX-10032762','Specific conductance', '', '')
rawPHmultiSite <- readWQPqw(c('USGS-05406450', 'USGS-05427949','WIDNR_WQX-133040'), 'pH','','')
\code{\link{readWQPdata}}, \code{\link{whatWQPsites}},
\code{\link{readNWISqw}}, and \code{\link{importWQP}}
\keyword{USGS}
\keyword{data}
\keyword{import}
\keyword{service}
\keyword{web}