I would like to convert these dates with format YYYYMMDD to a Date class.
dates <- data.frame(Date = c(\"20130707\", \"20130706\", \"20130705\", \"2013070
Classic R:
> start_numeric <- as.Date('20170215', format = '%Y%m%d'); > start_numeric [1] "2017-02-15" > format(start_numeric, "%Y%m%d") [1] "20170215"