[R] as.Date to as.POSIXct

arun smartpink111 at yahoo.com
Tue Dec 25 17:33:32 CET 2012


Hi,

You should have provided a reproducible example.
To convert in general, ?as.POSIXct()

A.K.




----- Original Message -----
From: Antonio Rodriges <antonio.rrz at gmail.com>
To: r-help at r-project.org
Cc: 
Sent: Tuesday, December 25, 2012 7:28 AM
Subject: [R] as.Date to as.POSIXct

Hello,

I have converted some UNIX time stamps with as.Date as follows

dates_unix <- seq(
             as.Date(convertTimeToString(timeStart)),
             length = length(data),
             by="1 mon")

and now I would like to convert "dates_unix" from type Date to type POSIXct

How can I do that?


Thanks

______________________________________________
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