Hi all, 

 

I have a data set 
containing dates in the format of m/d/y starting from 1950. I wanted to 
use standard format of date R uses. So I read the data set in R and 
converted it using as.Dates. But for dates from 1950-1968, I have the 
following problem. 

as.Date("1/1/50","%m/%d/%y",origin="1900/01/01") ="2050-01-01" instead of 
"1950-01-01"

But for dates 1969 onwards it is working fine.

as.Date("1/1/69","%m/%d/%y") = "1969-01-01"


Can anyone please help me find out the problem?

Thanks
Shant
        [[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