Query group data from the CDEC web services.

cdec_query_group(groups, start.date, end.date, ...)

Arguments

groups

A vector of group codes.

start.date

The start date of the query.

end.date

The end date of the query.

...

Not used.

Value

A tibble.

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".

Examples

if(interactive()){
  cdec_query_group("SR1", Sys.Date() - 5, Sys.Date())
}