[R] as.Date to as.POSIXct

Antonio Rodriges antonio.rrz at gmail.com
Tue Dec 25 13:28:26 CET 2012


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



More information about the R-help mailing list