I have a file in which the dates are subscribed as for instance: 20101020.
This is 20th Octobre 2010.
My problem is that R won't except this as a date, since there is no sign to seperate the Year, Month and Day
and that it will only see it as an origin, which it is not.
Does anyone know what to do about this.
Note that you must pass x as a character vector.
If not, the date functions will see it as the number of days since an origin
such as 1970-01-01 or others. See the help page for as.POSIXct for examples on this.
This is obviously not your case, so the examples above should solve it.
For date formats see