On Fri, Aug 20, 2010 at 10:35 AM, ivo welch <ivo.we...@gmail.com> wrote:
> The treatment of dates seems to be a little inconsistent in R 2.11.1
> (2010-05-31):
>
> [1] The choice of origins?
>
>  > as.integer(as.Date("1970-01-01"))
>
> works and assumes as origin 1970-01-01.  However,
>
>  > as.Date(1)

The zoo package replaces as.Date with one that has a default origin:

> library(zoo)
> as.Date(1)
[1] "1970-01-02"

______________________________________________
R-help@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.

Reply via email to