powered by
Function to check the format of a string column
test_data_string(data, column_name, nrcode = NA)
0, if success error, if failure
data frame
the column name
non response code corresponding to the column
test_data_string(data.frame("Age" = c(21, 15), "Name" = c("John", "Dora")), "name", -999)
Run the code above in your browser using DataLab