Learn R Programming

dataRetrieval (version 2.7.4)

whatWQPdata: Data Available from Water Quality Portal

Description

Returns a list of sites from the Water Quality Portal web service. This function gets the data from: https://www.waterqualitydata.us. Arguments to the function should be based on https://www.waterqualitydata.us/webservices_documentation

Usage

whatWQPdata(..., saveFile = tempfile())

Arguments

see https://www.waterqualitydata.us/webservices_documentation for a complete list of options. A list of arguments can also be supplied.

saveFile

path to save the incoming geojson output.

Value

A list

Examples

Run this code
# NOT RUN {
site1 <- whatWQPdata(siteid="USGS-01594440")

type <- "Stream"
sites <- whatWQPdata(countycode="US:55:025",siteType=type)

lakeSites <- whatWQPdata(siteType = "Lake, Reservoir, Impoundment", statecode = "US:55")
# }

Run the code above in your browser using DataLab