Hi FlexR,
and welcome to the RStudio Community!
Dig into the FAQ about how to REPREX.
Here is an example of a REPREX to help you get started, using some lubridate functions.
library(tidyverse)
library(lubridate)
#>
#> Attaching package: 'lubridate'
#> The following object is masked from 'package:base':
#>
#> date
df <- data.frame(
date = c('01.01.12', '01.04.12', '01.15.12'),
time = c('01.12', '04.16', '08.44')
)
df %>%
mutate(dttm = mdy_hm(paste(date, time)),
date = mdy(date),
time = hm(time))
#> date time dttm
#> 1 2012-01-01 1H 12M 0S 2012-01-01 01:12:00
#> 2 2012-01-04 4H 16M 0S 2012-01-04 04:16:00
#> 3 2012-01-15 8H 44M 0S 2012-01-15 08:44:00
Created on 2019-11-07 by the reprex package (v0.3.0)