IPDFileCheck (version 0.3.0)

testColumnContents: Function to check the format of column contents

Description

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

Examples

Run this code
# NOT RUN {
testColumnContents(data.frame("sex" = c("m","f"), "Name" = c("John","Dora")),"sex",c("m","f"),999)
# }

Run the code above in your browser using DataLab