Merge datetime columns

merge_datetime(date, time, format = "%Y-%m-%d %H:%M:%S")

Arguments

date

a vector of class date, or string of default format %Y-%m-%d

time

a vector of class time, or string of default format %H:%M:%S

format

a string vector of length 1 with the format to parse the combined date and time information. See base::strptime().

Details

Dates and times are often split across concepts in CC-HIC. This function takes a date and time column vectors and returns the combined asset as a datetime class.

See also