Learn R Programming

cimir (version 0.1-0)

to_datetime: To Datetime

Description

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

Usage

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.

Examples

Run this code
# NOT RUN {
if(is_key_set()) {
  d = get_data(targets = 170, start.date = Sys.Date() - 4, 
    end.date = Sys.Date() - 1, items = "hly-air-tmp")
  to_datetime(d)
} 
# }

Run the code above in your browser using DataLab