Get variable labels and store in named list
list_labels(data)
Data frame
list_labels(trial)
#> $trt
#> [1] "Chemotherapy Treatment"
#>
#> $age
#> [1] "Age"
#>
#> $marker
#> [1] "Marker Level (ng/mL)"
#>
#> $stage
#> [1] "T Stage"
#>
#> $grade
#> [1] "Grade"
#>
#> $response
#> [1] "Tumor Response"
#>
#> $death
#> [1] "Patient Died"
#>
#> $ttdeath
#> [1] "Months to Death/Censor"
#>