IPDFileCheck (version 0.3.0)

testDataNumeric: Function to check the format of a numeric column

Description

Function to check the format of a numeric column

Usage

testDataNumeric(column.name, data, nrcode = NA, minval, maxval)

Arguments

column.name

the column name

data

data frame

nrcode

non response code corresponding to the column

minval

minimum value allowed

maxval

maximum value allowed

Value

0, if success -1, if failure

Examples

Run this code
# 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