Converts a mighty_study or mighty_domain object into a flat dataframe of BDS parameter definitions.
Only the parameters themselves are returned. Use create_md_values() to
get the column definitions nested inside each parameter.
Arguments
- x
A mighty_study or mighty_domain object.
Value
A tibble with one row per parameter containing:
- table_id
Table identifier
- table_label
Table label/description
- order
Parameter order within table
- id
Parameter code (
PARAMCD)- label
Parameter label (
PARAM)
Examples
study <- mighty_study(
path = system.file("examples", package = "mighty.metadata")
)
#> → No `_documents.yml` file found
create_md_param(study)
#> # A tibble: 2 × 5
#> table_id table_label order id label
#> <chr> <chr> <int> <chr> <chr>
#> 1 ADVS Vital Signs Analysis Dataset 1 BMI Body Mass Index (kg/m^2)
#> 2 ADVS Vital Signs Analysis Dataset 2 BMIGRP Body Mass Index Group
