search for: intakedate

Displaying 1 result from an estimated 1 matches for "intakedate".

2012 Jul 11
3
unable to subtract dates in R
...take into a program. After several hours, searches of help archives, and the downloading of lubiridate, I have had no luck with this. Below is the code I used. > intakeDS$DOB <- as.character(intakeDS$DOB) > intakeDS$DOB <- as.Date(intakeDS$DOB, "%Y%m%d") > > # Make IntakeDate a date variable, by first converting it from numeric to character then from character to date > #intakeDS$IntakeDate <- as.character(intakeDS$IntakeDate) > intakeDS$IntakeDate_d <- as.Date(intakeDS$IntakeDate_c, "%Y%m%d") > > intakeDS$intake_age <- intakeDS$DOB -...