Skip to content
Back to formatted view

Raw Message

Message-ID: <1356453212.35956.YahooMailNeo@web142606.mail.bf1.yahoo.com>
Date: 2012-12-25T16:33:32Z
From: arun
Subject: as.Date to as.POSIXct
In-Reply-To: <CAPrLoNea+M6+oRnMJc7Pks8RCQvdeor2P+3MpCDbO+bSKZXQ=A@mail.gmail.com>

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.