I\'m working with the London crime dataset which contains dates in an integer format. I melted them and now they have become factors.
factor
For example, \"
\"
Using base R we can add the date component using paste0 convert to date object using appropriate format.
paste0
format
as.Date(paste0("X200801", "01"), format = "X%Y%m%d") #[1] "2008-01-01"