powered by
Function to check the format of a numeric column
test_data_numeric(column_name, data, nrcode = NA, minval, maxval)
0, if success error, if failure
the column name
data frame
non response code corresponding to the column
minimum value allowed
maximum value allowed
test_data_numeric("age", data.frame( "Age" = c(21, 15), "Name" = c("John", "Dora") ), -99, 0, 100)
Run the code above in your browser using DataLab