test_data_string {IPDFileCheck} | R Documentation |
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)
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
test_data_string(data.frame("Age" = c(21, 15), "Name" = c("John", "Dora")),
"name", -999)
[Package IPDFileCheck version 0.8.1 Index]