# NOT RUN {
# as a single numeric
chi2dob(1503541234)
# as a single character string, for a patient born in 1919
chi2dob("1108191234", cent = TRUE)
# as a mixed vector of adults and children, including one born in 1919
chi2dob(chi = c("1503541234", "1108191234", "0510141234"),
cent = c(FALSE, TRUE, FALSE))
# }
Run the code above in your browser using DataLab