Learn R Programming

random.cdisc.data (version 0.3.15)

var_relabel: Primary Keys: Labels

Description

Relabel a subset of variables in a data set.

Usage

var_relabel(x, ...)

Value

x (data.frame)
Data frame with labels applied.

Arguments

x

(data.frame)
Data frame containing variables to which labels are applied.

...

(named character)
Name-Value pairs, where name corresponds to a variable name in x and the value to the new variable label.

Examples

Run this code
adsl <- radsl()
var_relabel(adsl,
  STUDYID = "Study Identifier",
  USUBJID = "Unique Subject Identifier"
)

Run the code above in your browser using DataLab