cdec_query | R Documentation |
Query data from the CDEC web services.
cdec_query(stations, sensors, durations, start.date, end.date, ...)
stations |
A vector of station codes. |
sensors |
A vector of sensor numbers. |
durations |
A vector of durations. Possible duration codes are
|
start.date |
The start date of the query. |
end.date |
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".
A tibble.
if(interactive()){ cdec_query("NSL", 100, "E", Sys.Date() - 5, Sys.Date()) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.