View source: R/cdisc_validate.R
| validate_sdtm | R Documentation |
Validates a data frame against a specific SDTM domain specification. Checks for missing required/expected variables, data type mismatches, and non-standard variables.
validate_sdtm(df, domain)
df |
A data frame to validate. |
domain |
Character string specifying the SDTM domain code (e.g., "DM", "AE", "VS"). |
Severity levels:
ERROR: Required variable is missing
WARNING: Expected variable is missing or data type mismatch detected
INFO: Non-standard variable present or variable information
A data frame with validation results containing columns:
category |
Character: validation issue type |
variable |
Character: variable name |
message |
Character: issue description |
severity |
Character: "ERROR", "WARNING", or "INFO" |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.