There's a table with the following form:
ID | Date | Time
A 2021-07-26T00:00:00.000+0000 1:00AM
b 2021-08-13T00:00:00.000+0000 10:00PM
data.frame(ID = c("A", "B"), date = c("2021-07-26T00:00:00.000+0000", " 2021-08-13T00:00:00.000+0000"), time = c("1:00AM", "10:00PM"))
Like the dataframe above except Date is a datetime format. I would like to add the time to datetime given a vector of datetimes where all the time part is currently 0.
Expected output:
ID | new_date_time
A 2021-07-26 01:00:00
b 2021-08-13 22:00:00