search for: intake_ag

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

Did you mean: intake_age
2012 Jul 11
3
unable to subtract dates in R
...;) > > # 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 - intakeDS$IntakeDate_d > intakeDS$intake_age Time differences in days [1] NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA [61] NA NA NA...