get_sample_data: get sample data from dataRetrieval pacakge

Description Usage Arguments Value Examples

View source: R/usgs.R

Description

this is mainly a helper function for using the readWQPdata() function from the dataRetrieval package in that it helps the user identify if any of the station of interest don't have sample data associated with them, or simply don't exist.

Usage

1
get_sample_data(site_names, chem_codes = USGS_parameter_priority)

Arguments

site_names

list of site names

chem_codes

a data frame with the USGS water chemistry codes of the parameters you want to query

Value

water quality sample data for sites

Examples

1
2
3
4
5
## Not run: 
site_names <- c("USEPA-440432070255401","test", "USGS-010158001", "USGS-01011100", "test2")
sample_data <- get_sample_data(site_names)

## End(Not run)

kylemonper/CamelsQuery documentation built on Aug. 30, 2020, 12:34 p.m.