I tried to combine two columns and convert the new column using as.POSIXct df$d <- as.POSIXct(paste(df$a,df$b),format="%Y-%m-%d %H:%M:%S") but it retur
df$d <- as.POSIXct(paste(df$a,df$b),format="%Y-%m-%d %H:%M:%S")