Description Usage Arguments Value Examples
Pulls gage numbers of all gages with discharge data within a county and within the specified date range.
1 | get_gages(county_cd, start_date, end_date)
|
county_cd |
Character vector with the county FIPS code |
start_date |
Character string with the starting date, using "YYYY-MM-DD" notation. |
end_date |
Character string with the end date, using "YYYY-MM-DD" notation. |
A dataframe that gives the following variables for stream gages within the county and time range:
Name | Type | Description |
agency_cd | character | Agency running the gage (typically will be the USGS) |
site_no | character | USGS gage ID |
station_nm | character | Name of the gage site |
site_tp_cd | character | Type of gage (should always be "ST" for stream) |
dec_lat_va | numeric | Latitude of the gage site, in decimal degrees |
dec_long_va | numeric | Longitude of the gage site, in decimal degrees |
county_cd | character | Five-digit FIPS code of gage county location |
DA | numeric | Drainage area of the gage, in square miles |
Note that the returned object is the same as that returned by the whatNWISsites
funtion
in the dataRetrieval
package, but with county FIPS added for each gage.
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
get_gages("12086", start_date = "1988-01-01", end_date = "2015-01-01")
va_counties <- get_county_cd("Virginia")
va_gages <- get_gages(va_counties, start_date = "2015-01-01",
end_date = "2015-12-31")
# Equivalent with piping
library(dplyr)
va_gages <- get_county_cd("Virginia") %>%
get_gages(start_date = "2015-01-01", end_date = "2015-12-31")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.