testAge

Function to check the format of 'age' in data

Function to check the format of 'age' in data

Usage
testAge(data, agecolumn = "age", nrcode = NA)
Arguments
data

a data frame

agecolumn

column name that corresponds to age or date pf birth

nrcode

non response code corresponding to age column

Value

0, if success -1 if failure

Aliases
  • testAge
Examples
# NOT RUN {
testAge(data.frame("Age" = c(21,15), "Name" = c("John","Dora")),"age",999)
# }
Documentation reproduced from package IPDFileCheck, version 0.3.0, License: CC0

Community examples

Looks like there are no examples yet.