library(lubridate) df <- read.csv("data2020.csv",col.names=c("DateTime", "DB", "RH","DP","P","WIND","WIND-DIR","SUN","RAIN","START")) df$DateTime=as.POSIXct(df$DateTime,format="%d/%m/%Y %H:%M") head(df)