[R] factor conversion to date/time

R. Michael Weylandt michael.weylandt at gmail.com
Wed May 2 15:47:10 CEST 2012


Please don't triple post.

Michael

On Wed, May 2, 2012 at 8:08 AM, marjolein post <mayo_jojo at hotmail.com> wrote:
>
>
>
>
> Hi, I've been trying to convert numbers from an online temperature database
> into dates and time that R recognizes. I've tried as.Date, as.POSIXlt and strptime  the problem is that the database has put a T between the numbers and R will not accept any conversions. currently it sees the date as a factor with the format  as 1981-01-02T08:00I would like to keep only the year and month, but my primary focus is to get R to recognize it as a date.
>
> Thank you for your help. cheers,Marjolein
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> 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