Function to check the format of a string column
testDataString(data, column.name, nrcode = NA)
data frame
the column name
non response code corresponding to the column
0, if success -1, if failure
# 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