Learn R Programming

dataRetrieval (version 2.0.0)

getNWISData: General Data Import from NWIS

Description

Returns data from the NWIS web service. Arguments to the function should be based on http://waterservices.usgs.gov service calls.

Usage

getNWISData(service = "dv", ...)

readNWISdata(service = "dv", ...)

Arguments

service

string. Possible values are "iv" (for instantaneous), "dv" (for daily values), "gwlevels" (for groundwater levels), and "qwdata" (for water quality)

Value

retval dataframe

Examples

Run this code
# NOT RUN {
# Examples not run for time considerations
dataTemp <- readNWISdata(stateCd="OH",parameterCd="00010")
dataTempUnit <- readNWISdata(sites="03086500", service="iv", parameterCd="00010")
#Empty:
multiSite <- readNWISdata(sites=c("04025000","04072150"), service="iv", parameterCd="00010")
#Not empty:
multiSite <- readNWISdata(sites=c("04025500","040263491"), service="iv", parameterCd="00060")
# }

Run the code above in your browser using DataLab