[R] converting from numeric to Date
jim holtman
jholtman at gmail.com
Thu Nov 23 19:00:55 CET 2006
> Limite_x<-c(1131408000,1163548800)
> structure(Limite_x, class=c("POSIXt","POSIXct"))
[1] "2005-11-07 19:00:00 Eastern Standard Time" "2006-11-14 19:00:00
Eastern Standard Time"
>
On 11/23/06, COMTE Guillaume <g.comte at alliance-ir.net> wrote:
> Hi all,
>
> I have a Date, that has been converted to a number that represent the
> count of seconds since year 1970, how do i convert it to a date ?
>
>
>
> Example :
>
>
>
> >Limite_x<-c(1131408000,1163548800)
>
> >is(limite_x)
>
> [1] "numeric" "vector"
>
>
>
> But these numbers are dates, did R provide something that give you the
> date from this numeric vector ?
>
>
>
> Thks all.
>
>
>
> COMTE Guillaume.
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at stat.math.ethz.ch 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.
>
--
Jim Holtman
Cincinnati, OH
+1 513 646 9390
What is the problem you are trying to solve?
More information about the R-help
mailing list