I\'d like to convert this type of numeric values to a date but it doesn\'t work.
20100727 for instance
20100727
I tried to convert the numeric to charact
You were setting wrong order of month and date values (in your code was Year, Date, Month, should be Year, Month, Date).
as.Date("20100727", "%Y%m%d") [1] "2010-07-27"