cdec_query: Query CDEC

View source: R/query.r

cdec_queryR Documentation

Query CDEC

Description

Query data from the CDEC web services.

Usage

cdec_query(stations, sensors, durations, start.date, end.date, ...)

Arguments

stations

A vector of station codes.

sensors

A vector of sensor numbers.

durations

A vector of durations. Possible duration codes are "E" (event), "H" (hourly), "D" (daily), and "M" (monthly).

start.date

The start date of the query.

end.date

The end date of the query.

...

Not used.

Details

Note that CDEC timestamps are in Pacific Time and Daylight Savings adjustments are reflected. In R, this is equivalent to the timezone "US/Pacific".

Value

A tibble.

Examples

if(interactive()){
  cdec_query("NSL", 100, "E", Sys.Date() - 5, Sys.Date())
}


cder documentation built on March 7, 2023, 7:02 p.m.

Related to cdec_query in cder...