Learn R Programming

safetyGraphics (version 1.1.0)

evaluateStandard: Evaluate a data set against a data standard

Description

Determines whether the required data elements in a data standard are found in a given data frame

Usage

evaluateStandard(data, standard, includeFields = TRUE, domain = "labs")

Arguments

data

data.frame to evaluate

standard

standard to evaluate

includeFields

should field level data be evaluated?

domain

data domain. "labs" only for now.

Value

a list describing to what degree the data set matches the data standard. The "match" property describes compliance with the standard as "full", "partial" or "none". The "checks" property is a list of the data elements expected for the standard and whether they are "valid" in the given data set. "total_checks", "valid_checks" and "invalid_checks" provide counts of the specified checks. "match_percent" is calculated as valid_checks/total_checks.

Examples

Run this code
# NOT RUN {
safetyGraphics:::evaluateStandard(data=adlbc, standard="adam") # Match is TRUE
safetyGraphics:::evaluateStandard(data=adlbc, standard="sdtm") # Match is FALSE

# }

Run the code above in your browser using DataLab