[R] as.Date
Philipp Pagel
p.pagel at wzw.tum.de
Wed Feb 9 10:08:24 CET 2011
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/
More information about the R-help
mailing list