[R] Dates in R

Uwe Ligges ligges at statistik.tu-dortmund.de
Mon May 7 15:22:18 CEST 2012



On 07.05.2012 10:24, BrittD wrote:
> Hi everyone,
>
> I have a file in which the dates are subscribed as for instance: 20101020.
> This is 20th Octobre 2010.

strptime("20101020", format="%Y%m%d")

seems to work for me...

UWe Ligges


> 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.
>
> Greetings,
>
> Britt
>
> --
> View this message in context: http://r.789695.n4.nabble.com/Dates-in-R-tp4614266.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list