test_data_numeric: Function to check the format of a numeric column

View source: R/IPDFilecheck.R

test_data_numericR Documentation

Function to check the format of a numeric column

Description

Function to check the format of a numeric column

Usage

test_data_numeric(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 error, if failure

Examples

test_data_numeric("age", data.frame(
  "Age" =  c(21, 15),
  "Name"  = c("John", "Dora")
), -99, 0, 100)

sheejamk/ipdfilecheck documentation built on March 10, 2024, 11:23 p.m.