get_res_data: Get Reservoir Hydrodata from BoR Pseudo-API

View source: R/get_res_hydrodata.R

get_res_dataR Documentation

Get Reservoir Hydrodata from BoR Pseudo-API

Description

Grab any of the reservoir data from the BoR Hydrodata API if you know the number corresponding to a given reservoir and the number corresponding to a given datatype. The function also allows you to grab a specific day, or the entire historic/current data if no date is specified.

Usage

get_res_data(reservoir_num, data_type_num, date = NULL, most_recent = FALSE)

Arguments

reservoir_num

(num) numeric value corresponding to a given reservoir

data_type_num

(num) numeric value correspond to a given data type

date

(chr) date to filter for in YYYY-MM-DD format

Value

a two-column tibble of returned data

Examples

get_res_data(919, 49) # get Powell Elevation

Martin-McCoy/BORdata documentation built on Feb. 6, 2023, 2:41 p.m.