| p21_to_evidence | R Documentation |
Converts a data.frame of Pinnacle21-style validation results into the standard evidence table format. Column names are detected case-insensitively.
p21_to_evidence(
p21_df,
ctx,
asset_type = "validation",
source_version = NULL,
default_domain = "quality"
)
p21_df |
A data.frame containing Pinnacle21 validation output. Expected
columns (case-insensitive): |
ctx |
A r4sub_run_context providing run and study metadata. |
asset_type |
Character. Asset type label. Default: |
source_version |
Character or |
default_domain |
Character. Indicator domain. Default: |
A data.frame conforming to the evidence schema.
p21_raw <- data.frame(
Rule = c("SD0001", "SD0002"),
Message = c("Missing variable label", "Invalid format"),
Severity = c("Error", "Warning"),
Dataset = c("ADSL", "ADAE"),
Variable = c("AGE", "AESTDTC"),
Status = c("Failed", "Warning"),
stringsAsFactors = FALSE
)
ctx <- r4sub_run_context("STUDY1", "DEV")
ev <- p21_to_evidence(p21_raw, ctx)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.