checkNegativeValues: Check Negative Values

View source: R/checkNegativeValues.R

checkNegativeValuesR Documentation

Check Negative Values

Description

In general, data values which are negative will not be imported.

Usage

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

Arguments

d

D2 Parsed data frame

d2session

DHIS2 Session id

Value

A filtered D2 compliant data frame of invalid values, otherwise, returns TRUE if there are no violations. A warning will also be issued if there are any negative values found in non-dedupe mechanisms.

Examples

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

## End(Not run)


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