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 character and applied this :
as.Date("20100727", "Y%d%m")
but it doesn't work.
How can I do ?
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"
1.4m articles
1.4m replys
5 comments
57.0k users