View source: R/checkValueTypeCompliance.R
checkValueTypeCompliance | R Documentation |
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.
checkValueTypeCompliance(
d,
d2session = dynGet("d2_default_session", inherits = TRUE)
)
d |
D2 Parsed data frame |
d2session |
DHIS2 Session id |
Returns a data frame of invalid data only
## Not run:
d <- d2Parser("myfile.csv",type="csv")
checkValueTypeCompliance(d)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.