Hi everybody,

 

I have a strange behavior of the as.Date() function. For example:

 

as.Date(36525, origin="1900-01-01'")

 

I would expect to get 2000-01-01. But R gives me

 

[1] "2070-01-01"

 

I tried with several origins but the results are still the same. It
seems that the origin does not apply and remains 1970-01-01.

 

Does anyone can give me a hint  how to solve this problem?

 

Thanks very much.

 

Fabio

 

 

 

 

 

------------------------------------------------------------------------
---

Fabio Valeri, MSc

University of Bern

Institute of Social and Preventive Medicine

Division of International & Environmental Health

Finkenhubelweg 11 - CH-3012 Bern

Tel +41 (0)31 631 35 10 - Fax +41 (0)31 631 35 20 - www.ispm.ch




        [[alternative HTML version deleted]]

______________________________________________
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