Learn R Programming

IPDFileCheck (version 0.8.1)

test_data_string: Function to check the format of a string column

Description

Function to check the format of a string column

Usage

test_data_string(data, column_name, nrcode = NA)

Value

0, if success error, if failure

Arguments

data

data frame

column_name

the column name

nrcode

non response code corresponding to the column

Examples

Run this code
test_data_string(data.frame("Age" = c(21, 15), "Name" = c("John", "Dora")),
"name", -999)

Run the code above in your browser using DataLab