checkValueTypeCompliance: Check Value Type Compliance

View source: R/checkValueTypeCompliance.R

checkValueTypeComplianceR Documentation

Check Value Type Compliance

Description

This function will check data to ensure that its value matches a given pattern based on its value type. As an example, if the data element which is being validated should only accept positive integers, any values which are not positive integers will be flagged. For values which are composed of option sets, any values which do not correspond so one of the option set value codes, will also be flagged. Additionally ,any values which are zero for which the data element is not zero significant will also be flagged.

Usage

checkValueTypeCompliance(
  d,
  d2session = dynGet("d2_default_session", inherits = TRUE)
)

Arguments

d

D2 Parsed data frame

d2session

DHIS2 Session id

Value

Returns a data frame of invalid data only

Examples

## Not run: 
d <- d2Parser("myfile.csv",type="csv")
checkValueTypeCompliance(d)

## End(Not run)


jason-p-pickering/datim-validation documentation built on April 20, 2023, 5:32 a.m.