Learn R Programming

RNRCS (version 0.2.5)

grabBOR.data: grabBOR.data

Description

A data downloading tool for reservoirs managed by the United States Bureau of Reclamation. Data retrieval is limited by the speed of the connection, if timeout errors persist break requested time periods down into smaller chunks, or use a faster connection.

Usage

grabBOR.data(site_id, timescale, DayBgn, DayEnd)

Arguments

site_id

The BOR site ID. Use grabNRCS.meta to retrieve a list of available sites in a specified network. Consider using the package 'metScanR' to locate sites.

timescale

Specify the desired timescale of the data. Typically 'hourly', 'daily', or 'monthly'

DayBgn

Specify the beginning date (as YYYY-MM-DD ) for the returned data.

DayEnd

Specify the end date (as YYYY-MM-DD ) for the returned data.

Value

Returns a data frame of requested data and a list of varaibles with no data.

References

Downloads <https://wcc.sc.egov.usda.gov/reportGenerator>

See Also

Currently none

Examples

Run this code
# NOT RUN {
JacksonLake<- grabBOR.data(site_id = 13010500, timescale = "monthly",
DayBgn="2016-01-01", DayEnd="2017-01-01")
# }
# NOT RUN {
#Return monthly summaries for the period of record at a Jackson Lake, WY.
# }

Run the code above in your browser using DataLab