[R] month-day-year to Date
Terry Therneau
therneau at mayo.edu
Sun Dec 28 20:11:45 CET 2008
I have a data from with 3 numeric variables, and wish to create a Date object.
The old "date" library had a function mdy.date to do this. I've chased all of
the See Also sections I can find for the Date class, and didn't find anything
comparable.
Yes, I can use as.Date(paste(data$year+1900, data$month, data$day), sep='/'))
but it seems odd pack something together that will immediately be unpacked.
Terry Therneau
More information about the R-help
mailing list