[R] Write date class as number of days from 1970

Uwe Ligges ligges at statistik.tu-dortmund.de
Fri May 3 23:37:41 CEST 2013



On 03.05.2013 15:59, Manta wrote:
> Dear all,
>
> I have a dataset with one column being of class Date. When I write the
> output, I would like that column being written as number of days from
> 1970-01-01. I could not find anywhere a way to do it.


as.numeric(x)

where x is the Date object.

Uwe Ligges



> Thanks,
> Marco
>
>
>
> --
> View this message in context: http://r.789695.n4.nabble.com/Write-date-class-as-number-of-days-from-1970-tp4666155.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> 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