header_tag.html

Skip to contents

This function creates the call and gets the data for discrete water quality samples summary data service described at https://api.waterdata.usgs.gov/samples-data/docs.

Usage

summarize_waterdata_samples(monitoringLocationIdentifier)

summarize_USGS_samples(monitoringLocationIdentifier)

Arguments

monitoringLocationIdentifier

A single monitoring location identifier with two parts, separated by a dash (-): the agency code and the location number. Examples: USGS-040851385, AZ014-320821110580701, CAX01-15304600. The summary service accepts only one site at a time; supplying a vector of length > 1 raises an error. The agency prefix is required: bare location numbers (e.g. "040851385") are accepted by the service but return an empty result.

Value

data frame with summary of data available based on the monitoringLocationIdentifier

Examples


# \donttest{
monitoringLocationIdentifier <- "USGS-04074950"

what_data <- summarize_waterdata_samples(monitoringLocationIdentifier)
#> GET: https://api.waterdata.usgs.gov/samples-data/summary/USGS-04074950?mimeType=text%2Fcsv

# }