Skip to content
Prev 165615 / 398506 Next

month-day-year to Date

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