search for: date_birth

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

2005 Dec 20
2
Time data
...he date of examination. Suppose that have the following data: df <- as.data.frame(rbind(c(1,"10/08/1950","15/03/1998"), c(1,"10/08/1950","20/07/1998"), c(1,"10/08/1950","23/10/1998"))) names(df) <- c("ID", "date_birth", "date_exam") where: date_birth: is the date of birth date_exam: date of examination I used the following program to compute the value of the age : difftime(strptime(as.character(df$date_exam), '%d/%m/%Y'), strptime(as.character(df$date_birth), '%d...