Skip to contents

Get USGS data based for a single state with specific aquifer codes.

Usage

get_state_data(state, aquiferCd, startDate, endDate, parameter_cd = "72019")

Arguments

state

character. Can be state abbreviation, long name, or numeric code.

aquiferCd

character. To see valid aquifer codes, see the included data frame local_aqfr.

startDate

date or string. Beginning date of when to pull data.

endDate

date of string Ending date to pull data.

parameter_cd

5-digit character USGS parameter code. Default is "72019".

Examples

end_date <- "2021-01-01"
start_date <- "1989-12-31"
aquiferCd <- "S100CSLLWD"

# \donttest{
st_data <- get_state_data("WI", aquiferCd,
                          start_date, end_date)
# }