View source: R/checkDataElementDisaggValidity.R
checkDataElementDisaggValidity | R Documentation |
Utility function to produce a data frame of invalid data elements based on current DATIM form specification.
checkDataElementDisaggValidity(
d,
datasets = NA,
d2session = dynGet("d2_default_session", inherits = TRUE)
)
d |
D2 Parsed data frame |
datasets |
Should be a character vector of data set UIDs. Alternatively, if left missing, user will be promted to choose from a list. |
d2session |
DHIS2 Session id |
Returns a data frame of "dataElementName","categoryOptionComboName", "dataElement","categoryOptionCombo" of invalid data elements which are present the the data, if any. If there are no violations, a boolean TRUE is returned.
## Not run:
d <- d2Parser("myfile.csv",type="csv")
ds <- getCurrentDataSets(type="RESULTS")
checkDataElementDisaggValidity(d,ds)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.