cdec_query: Query CDEC

Description Usage Arguments Details Value Examples

View source: R/query.r

Description

Query data from the CDEC web services.

Usage

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

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

Examples

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

cder documentation built on Jan. 25, 2020, 1:07 a.m.

Related to cdec_query in cder...