Function to check the format of a numeric column
testDataNumeric(column.name, data, nrcode = NA, minval, maxval)
the column name
data frame
non response code corresponding to the column
minimum value allowed
maximum value allowed
0, if success -1, if failure
# NOT RUN { testDataNumeric("age",data.frame("Age" = c(21,15), "Name" = c("John","Dora")),-99,0,100) # }
Run the code above in your browser using DataCamp Workspace