IPDFileCheck (version 0.3.0)

testDataString: Function to check the format of a string column

Description

Function to check the format of a string column

Usage

testDataString(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 -1, if failure

Examples

Run this code
# NOT RUN {
testDataString(data.frame("Age" = c(21,15), "Name" = c("John","Dora")),"name",-999)
# }

Run the code above in your browser using DataCamp Workspace