Learn R Programming

dataRetrieval (version 2.7.4)

whatWQPsamples: Sampling Activity Data Import 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

whatWQPsamples(...)

Arguments

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

Value

A data frame

Examples

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

type <- "Stream"
sites <- whatWQPsamples(countycode="US:55:025",siteType=type)
lakeSites <- whatWQPsamples(siteType = "Lake, Reservoir, Impoundment", statecode = "US:55")
# }

Run the code above in your browser using DataLab