Return groundwater water level well measurements
Source:R/get_groundwater.R
get_gw_wl_wellmeasures.Rd
Make a request to the groundwater/waterlevels/wellmeasurements endpoint to retrieve groundwater water level well measurement data.
Usage
get_gw_wl_wellmeasures(
wellid = NULL,
start_date = "1950-01-01",
end_date = Sys.Date(),
api_key = NULL
)
Arguments
- wellid
character vector or list of well IDs
- start_date
character date to request data start point (YYYY-MM-DD).
- end_date
character date to request data end point (YYYY-MM-DD). Default is set to the current date function is run.
- api_key
character, optional. If more than maximum number of requests per day is desired, an API key can be obtained from CDSS.
Examples
if (FALSE) {
# Request endpoint: api/v2/groundwater/waterlevels/wellmeasurements
well_measure <- get_gw_wl_wellmeasures(
wellid = 1274
)
# plot depth to water
plot(well_measure$depth_to_water~well_measure$datetime, type = "l")
# get data from multiple well IDs
multi_well <- get_gw_wl_wellmeasures(
wellid = c("84", "85", "94")
)
}