Skip to content
Snippets Groups Projects
Commit 185c19c2 authored by Laura A DeCicco's avatar Laura A DeCicco
Browse files

Updated doc.

parent de25c7a9
No related branches found
No related tags found
1 merge request!11Added generalized NWIS data function, and functionality to WQP raw pulls (datetimes).
#' General Data Import from NWIS
#'
#' Returns data from the NWIS web service.
#' Arguments to the function should be based on \url{http://waterservices.usgs.gov/rest/Site-Service.html#Service}
#' Arguments to the function should be based on \url{http://waterservices.usgs.gov} service calls.
#'
#' @param service string
#' @param service string. Possible values are "iv" (for instantaneous), "dv" (for daily values), "gwlevels"
#' (for groundwater levels), and "qwdata" (for water quality)
#' @param \dots see \url{http://waterservices.usgs.gov/rest/Site-Service.html#Service} for a complete list of options
#' @keywords data import NWIS web service
#' @return retval dataframe
......@@ -21,7 +22,7 @@ getNWISData <- function(service="dv", ...){
baseURL <- paste0("http://waterservices.usgs.gov/nwis/",service,"/?format=rdb&")
urlCall <- paste0(baseURL,urlCall)
if(service=="qw"){
if(service=="qwdata"){
urlCall <- paste0(urlCall,"&siteOutput=expanded")
}
......
......@@ -6,7 +6,8 @@
getNWISData(service = "dv", ...)
}
\arguments{
\item{services}{string}
\item{service}{string. Possible values are "iv" (for instantaneous), "dv" (for daily values), "gwlevels"
(for groundwater levels), and "qwdata" (for water quality)}
\item{\dots}{see \url{http://waterservices.usgs.gov/rest/Site-Service.html#Service} for a complete list of options}
}
......@@ -15,7 +16,7 @@ retval dataframe
}
\description{
Returns data from the NWIS web service.
Arguments to the function should be based on \url{http://waterservices.usgs.gov/rest/Site-Service.html#Service}
Arguments to the function should be based on \url{http://waterservices.usgs.gov} service calls.
}
\examples{
dataTemp <- getNWISData(stateCd="OH",parameterCd="00010")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment