testGender

Function to check the format of 'gender' column in data

Function to check the format of 'gender' column in data

Usage
testGender(data, gendercode, gendercolumn = "gender", nrcode = NA)
Arguments
data

a data frame

gendercode

how gender is coded

gendercolumn

column name for gender

nrcode

non response code corresponding to gender column

Value

0, if success -1 if failure

Aliases
  • testGender
Examples
# NOT RUN {
testGender(data.frame("sex" = c("m","f"), "Name" = c("John","Dora")),c("f", "m"),"sex",999)
# }
Documentation reproduced from package IPDFileCheck, version 0.3.0, License: CC0

Community examples

Looks like there are no examples yet.