[R] Convert number to Date

anna lippelanna24 at hotmail.com
Thu Mar 25 21:33:53 CET 2010


Hello, I have a date value in excel: 1/4/2010 which in number format gives me
40182. When I read this with read.xls from R I get same 40182 so what I do
is that I use the as.Date() function but here is what the as.Date() function
returns me:
> as.Date(40182)
[1] "2080-01-06"
Why don't I get the same thing as in excel?
Thanks!

-----
Anna Lippel
-- 
View this message in context: http://n4.nabble.com/Convert-number-to-Date-tp1691251p1691251.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list