test_data_string: Function to check the format of a string column

Description Usage Arguments Value Examples

View source: R/IPDFileCheck.R

Description

Function to check the format of a string column

Usage

1
test_data_string(data, column_name, nrcode = NA)

Arguments

data

data frame

column_name

the column name

nrcode

non response code corresponding to the column

Value

0, if success error, if failure

Examples

1
2
test_data_string(data.frame("Age" = c(21, 15), "Name" = c("John", "Dora")),
"name", -999)

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