[R] as.Date

BXC (Bendix Carstensen) bxc at steno.dk
Thu Feb 10 00:41:21 CET 2011


We spotted that there were problems, and have realized that the as.Date.numeric was a left-over form earlier; it will be removed in the next version of the Epi package.
Thanks for the help.
br.
Bendix 

> -----Original Message-----
> From: Prof Brian Ripley [mailto:ripley at stats.ox.ac.uk] 
> Sent: 9. februar 2011 11:48
> To: Philipp Pagel
> Cc: BXC (Bendix Carstensen); r-help at r-project.org
> Subject: Re: [R] as.Date
> 
> And I am hereby reporting this bug to the package maintainer.
> 
> On Wed, 9 Feb 2011, Philipp Pagel wrote:
> 
> > On Wed, Feb 09, 2011 at 08:44:30AM +0100, Valeri Fabio wrote:
> >> Hello,
> >>
> >> I find out which package disturbs as.Date(). It is the package Epi:
> >>
> >>> as.Date(36525, origin="1900-01-01")
> >> [1] "2000-01-02"
> >>> library(Epi)
> >>> as.Date(36525, origin="1900-01-01")
> >> [1] "2070-01-01"
> >>> detach("package:Epi")
> >>> as.Date(36525, origin="1900-01-01")
> >> [1] "2000-01-02"
> >
> > OK - that makes sense. Epi has its own as.Date.numeric function and 
> > upon loading the package you get a warning:
> >
> >
> >> library(Epi)
> > Attaching package: 'Epi'
> > The following object(s) are masked from 'package:base':
> >    as.Date.numeric, merge.data.frame
> >
> >
> > A quick look at the manual page confirms that Epi's version 
> does not 
> > have an origin option.
> >
> > cu
> > 	Philipp
> >
> > --
> > Dr. Philipp Pagel
> > Lehrstuhl für Genomorientierte Bioinformatik Technische Universität 
> > München Wissenschaftszentrum Weihenstephan Maximus-von-Imhof-Forum 3
> > 85354 Freising, Germany
> > http://webclu.bio.wzw.tum.de/~pagel/
> >
> > ______________________________________________
> > 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.
> >
> 
> -- 
> Brian D. Ripley,                  ripley at stats.ox.ac.uk
> Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
> University of Oxford,             Tel:  +44 1865 272861 (self)
> 1 South Parks Road,                     +44 1865 272866 (PA)
> Oxford OX1 3TG, UK                Fax:  +44 1865 272595


More information about the R-help mailing list