testColumnContents

Function to check the format of column contents

Function to check the format of column contents

Usage
testColumnContents(data, column, code, nrcode = NA)
Arguments
data

a data frame

column

column name for gender

code

how column values are coded

nrcode

non response code corresponding to gender column

Value

0, if success -1 if failure

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

Community examples

Looks like there are no examples yet.