test_column_contents {IPDFileCheck}R Documentation

Function to check the format of column contents

Description

Function to check the format of column contents

Usage

test_column_contents(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 error if failure

Examples

test_column_contents(data.frame(
  "sex" = c("m", "f"),
  "Name" = c("John", "Dora")
), "sex", c("m", "f"), 999)

[Package IPDFileCheck version 0.8.1 Index]