View source: R/metacore_to_evidence.R
| metacore_to_evidence | R Documentation |
Turns dataset metadata - either a metacore object or a
plain data.frame - into standardized R4SUB evidence rows describing how
completely each variable is documented. This lets metadata assembled for a
'pharmaverse' pipeline feed the same evidence table and Submission Confidence
Index as any other source.
metacore_to_evidence(
metadata,
ctx,
source_name = "metacore",
source_version = NULL
)
metadata |
A |
ctx |
An r4subcore::r4sub_run_context providing run and study identifiers. |
source_name |
Character. Label recorded as the evidence source.
Default |
source_version |
Character or |
Two indicators are evaluated, reusing the identifiers emitted by
r4subcore::define_xml_to_evidence() so that metadata- and Define-XML-sourced
evidence group together in scoring and explainability:
Variable is documented (has a label and a data type).
Derivation text is present for derived variables.
A data.frame conforming to the R4SUB evidence schema.
adam_to_evidence(), submission_readiness()
# The example ADaM metadata shipped in r4subdata.
ctx <- suppressMessages(r4subcore::r4sub_run_context("STUDY01", "DEV"))
ev <- suppressMessages(metacore_to_evidence(r4subdata::adam_metadata, ctx))
table(ev$indicator_id, ev$result)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.