View source: R/adam_to_evidence.R
| adam_to_evidence | R Documentation |
Compares a built ADaM dataset - such as one produced by an 'admiral' pipeline
against its metadata and emits R4SUB evidence rows about conformance. The checks are computed directly from the dataset and metadata, so they work whether or not the dataset was passed through 'xportr' or 'metatools'.
adam_to_evidence(
data,
metadata,
ctx,
dataset_name = NULL,
source_name = "adam",
source_version = NULL
)
data |
A data.frame: one ADaM dataset. |
metadata |
A |
ctx |
An r4subcore::r4sub_run_context providing run and study identifiers. |
dataset_name |
Character or |
source_name |
Character. Label recorded as the evidence source.
Default |
source_version |
Character or |
Four indicators are evaluated:
Each variable described in the metadata is present in the dataset (traceability).
Each dataset column is described in the metadata; columns that are not are flagged (traceability).
Present variables have the data type family the metadata specifies (quality).
Present variables carry a non-empty label attribute (usability).
A data.frame conforming to the R4SUB evidence schema.
metacore_to_evidence(), submission_readiness()
# Check the CDISC pilot ADSL from pharmaverseadam against the ADaM metadata
# shipped in r4subdata.
ctx <- suppressMessages(r4subcore::r4sub_run_context("CDISCPILOT01", "DEV"))
ev <- suppressMessages(adam_to_evidence(
pharmaverseadam::adsl,
r4subdata::adam_metadata,
ctx,
dataset_name = "ADSL"
))
table(ev$indicator_id, ev$result)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.