| build_trace_model | R Documentation |
Constructs a directed trace model (nodes + edges + diagnostics) from ADaM metadata, SDTM metadata, and an optional mapping sheet.
build_trace_model(
adam_meta,
sdtm_meta,
mapping = NULL,
spec = NULL,
config = trace_config_default()
)
adam_meta |
A data.frame of ADaM variable metadata. Must contain
|
sdtm_meta |
A data.frame of SDTM variable metadata. Must contain
|
mapping |
An optional data.frame describing ADaM-to-SDTM mappings.
Must contain |
spec |
Reserved for future use (ADaM spec ingestion). |
config |
A |
A list of class "trace_model" with elements:
nodes: tibble of asset nodes (datasets and variables)
edges: tibble of relationships between nodes
diagnostics: list of tibbles (orphans, ambiguities, conflicts)
config: the configuration used
adam_meta <- data.frame(
dataset = "ADSL", variable = c("STUDYID", "USUBJID", "AGE"),
label = c("Study ID", "Unique Subject ID", "Age")
)
sdtm_meta <- data.frame(
dataset = "DM", variable = c("STUDYID", "USUBJID", "AGE"),
label = c("Study ID", "Unique Subject ID", "Age")
)
map <- data.frame(
adam_dataset = "ADSL", adam_var = c("STUDYID", "USUBJID", "AGE"),
sdtm_domain = "DM", sdtm_var = c("STUDYID", "USUBJID", "AGE")
)
tm <- build_trace_model(adam_meta, sdtm_meta, mapping = map)
tm$nodes
tm$edges
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.