[R] Date Inconsistencies? Buglets?
Gabor Grothendieck
ggrothendieck at gmail.com
Fri Aug 20 16:49:51 CEST 2010
On Fri, Aug 20, 2010 at 10:35 AM, ivo welch <ivo.welch at 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"
More information about the R-help
mailing list