calculateAgeFromBirthYear

Function to calculate age from year of birth

Function to calculate age from year of birth

Usage
calculateAgeFromBirthYear(data, columnname, nrcode = NA)
Arguments
data

a data frame

columnname

name of column corresponding to year of birth

nrcode

non response code corresponding to date of birth

Value

data, if success -1 if failure

Aliases
  • calculateAgeFromBirthYear
Examples
# NOT RUN {
calculateAgeFromBirthYear(data.frame("yob" = c(1951,1980), "Name" = c("John","Dora")),"yob",NA)
# }
Documentation reproduced from package IPDFileCheck, version 0.3.0, License: CC0

Community examples

Looks like there are no examples yet.