I am having problems with reading excel. A column with dates is being read some cells in serial and others as date as below.
date<-c("43942", "43945", "43952", "17/05/2020", "17/05/2020",
"18/05/2020", "19/05/2020", "18/05/2020", "22/05/2020")
How could I convert the vector below to dates? I put it as a string because this is how the column I want to convert looks after reading.
The command
as.Date(date, origin = "1899-12-30")
return error and
as.Date(as.numeric(date), origin = "1899-12-30")
convert in NA the non-serial dates.