cdec_stations: Search CDEC Stations

View source: R/stations.R

cdec_stationsR Documentation

Search CDEC Stations

Description

Search the stations in the CDEC system using the CDEC Station Search service here. Combinations of these parameters can be supplied to refine or be left out to generalize, at least one must be supplied.

Usage

cdec_stations(
  station_id = NULL,
  nearby_city = NULL,
  river_basin = NULL,
  hydro_area = NULL,
  county = NULL
)

Arguments

station_id

string three letter station code

nearby_city

string search stations near supplied city

river_basin

string search stations in supplied basin

hydro_area

string search stations in supplied hydrological area

county

string search stations in supplied county

Value

data frame with queried stations as rows and columns describing the station_id, name, river_basin, county, longitude, latitude, elevation, operator, and state

Examples

# cdec_stations() can be used to find locations within an area of interest
## Not run: 
cdec_stations(county = "alameda")

## End(Not run)
# or it can be used to get metadata attributes for a location
## Not run: 
cdec_stations(station_id = "ccr")

## End(Not run)

FlowWest/CDECRetrieve documentation built on Oct. 10, 2022, 9:31 p.m.