View source: R/checkDataElementCadence.R
checkDataElementCadence | R Documentation |
Utility function to produce a data frame of invalid data value based on the so-called data element cadence. Quarterly data elements can be submitted each quarter. SAPR data elements should only be submiteted in FYQ2 and FYQ4. APR data elements should only be submitted in FYQ4.
checkDataElementCadence(
d,
d2session = dynGet("d2_default_session", inherits = TRUE)
)
d |
D2 Parsed data frame |
d2session |
DHIS2 Session id |
Returns a data frame of "dataElement","period", 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")
checkDataElementCadence(d)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.