powered by
Query data from the CDEC web services.
cdec_query(stations, sensors, durations, start.date, end.date, ...)
A tibble.
A vector of station codes.
A vector of sensor numbers.
A vector of durations. Possible duration codes are "E" (event), "H" (hourly), "D" (daily), and "M" (monthly).
"E"
"H"
"D"
"M"
The start date of the query.
The end date of the query.
Not used.
Note that CDEC timestamps are in Pacific Time and Daylight Savings adjustments are reflected. In R, this is equivalent to the timezone "US/Pacific".
if(interactive()){ cdec_query("NSL", 100, "E", Sys.Date() - 5, Sys.Date()) }
Run the code above in your browser using DataLab