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.