test_column_contents: Function to check the format of column contents

View source: R/IPDFilecheck.R

test_column_contentsR 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)

sheejamk/IPDFileCheck documentation built on March 10, 2024, 3:14 p.m.