Calculate age from date of birth and date of record
Usage
calculate_age(record_date, dobyr, dobmnth, dobday)
Arguments
- record_date
Date data collected (in format "%Y-%m-%d %H:%M:%S" or "%d/%m/%Y %H:%M")
- dobyr
Year of birth
- dobmnth
Month of birth
- dobday
Day of birth
Value
An integer vector of ages