test_column_contents: Function to check the format of column contents

Description Usage Arguments Value Examples

View source: R/IPDFileCheck.R

Description

Function to check the format of column contents

Usage

1
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

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

IPDFileCheck documentation built on Feb. 1, 2022, 9:07 a.m.