If I have multiple spreadsheets with date column that have different formats, is it possible to convert the dates if some of the rows have the numeric format?
If I import the columns as character, I would still need to convert to date. I believe parse_date_time will fix anything accept the number format.
The following will convert the first two but not the numeric version. I don't think this function has a numeric function. Is there a function that can process both Text and Numeric dates?
x<- c("2019-12-05","8-Dec-19","43787")
lubridate::parse_date_time(x, c("ymd", "d-b-y"))