jwutil (version 1.2.3)

add_time_to_date: convert separate lists of dates and times to POSIXlt objects

Description

Some datetime data is presented as a separate dates and times. This function restores the full date-time.

Usage

add_time_to_date(tms, dts, verbose = FALSE)

Arguments

tms

vector of times, i.e. number in range 0 to 2400, as string or integer, with or without trailing zeros

dts

vector of dates, in string format %Y-%m-%d or simple R Date objects

verbose

single logical value, if TRUE then produce verbose messages

Value

vector of POSIXlt date-times