Collapse The Date and Hour columns to a single DateTime Column.

cimis_to_datetime(d)

Arguments

d

A data frame of CIMIS data results.

Value

The data frame, with a new "Datetime" column replacing the "Date" and "Hour" columns.

Details

According to the CIMIS Report FAQs, all CIMIS data is based on Pacific Standard Time (PST).

Examples

if(is_key_set()) {
  d = cimis_data(targets = 170, start.date = Sys.Date() - 4,
    end.date = Sys.Date() - 1, items = "hly-air-tmp")
  cimis_to_datetime(d)
}