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@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,                  rip...@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
______________________________________________
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