Apply labels to ADSL primary key variables

var_relabel(x, ...)

Arguments

x

data frame containing variables to which labels are applied.

...

ellipsis.

Examples

ADSL <- radsl()
random.cdisc.data:::var_relabel(ADSL,
  STUDYID = "Study Identifier",
  USUBJID = "Unique Subject Identifier"
)
#> # A tibble: 400 × 44
#>    STUDYID USUBJID    SUBJID SITEID   AGE AGEU  SEX   RACE  ETHNIC COUNTRY DTHFL
#>    <chr>   <chr>      <chr>  <chr>  <int> <fct> <fct> <fct> <fct>  <fct>   <fct>
#>  1 AB12345 AB12345-G… id-223 GBR-3     26 YEARS M     ASIAN HISPA… GBR     N    
#>  2 AB12345 AB12345-C… id-108 CHN-1     32 YEARS F     AMER… NOT H… CHN     N    
#>  3 AB12345 AB12345-P… id-18  PAK-15    38 YEARS F     BLAC… HISPA… PAK     N    
#>  4 AB12345 AB12345-R… id-199 RUS-5     36 YEARS F     ASIAN NOT H… RUS     N    
#>  5 AB12345 AB12345-U… id-185 USA-7     40 YEARS F     ASIAN NOT H… USA     N    
#>  6 AB12345 AB12345-C… id-56  CHN-1     29 YEARS F     ASIAN NOT H… CHN     Y    
#>  7 AB12345 AB12345-U… id-145 USA-11    49 YEARS M     BLAC… NOT H… USA     N    
#>  8 AB12345 AB12345-N… id-206 NGA-7     40 YEARS M     ASIAN NOT H… NGA     N    
#>  9 AB12345 AB12345-C… id-97  CHN-2     33 YEARS F     BLAC… UNKNO… CHN     N    
#> 10 AB12345 AB12345-C… id-249 CHN-1     37 YEARS M     ASIAN NOT H… CHN     N    
#> # … with 390 more rows, and 33 more variables: INVID <chr>, INVNAM <chr>,
#> #   ARM <fct>, ARMCD <fct>, ACTARM <fct>, ACTARMCD <fct>, TRT01P <fct>,
#> #   TRT01A <fct>, REGION1 <fct>, STRATA1 <fct>, STRATA2 <fct>, BMRKR1 <dbl>,
#> #   BMRKR2 <fct>, ITTFL <fct>, SAFFL <fct>, BMEASIFL <fct>, BEP01FL <fct>,
#> #   RANDDT <date>, TRTSDTM <dttm>, TRTEDTM <dttm>, EOSSTT <fct>, EOTSTT <fct>,
#> #   EOSDT <date>, EOSDY <int>, DCSREAS <fct>, DTHDT <date>, DTHCAUS <fct>,
#> #   DTHCAT <fct>, LDDTHELD <int>, LDDTHGR1 <fct>, LSTALVDT <date>, …