Learn R Programming

rtables (version 0.4.0)

var_relabel: Copy and Change Variable Labels of a data.frame

Description

Relabel a subset of the variables

Usage

var_relabel(x, ...)

Arguments

x

a data.frame object

...

name-value pairs, where name corresponds to a variable name in x and the value to the new variable label

Value

a copy of x with changed labels according to ...

Examples

Run this code
# NOT RUN {
x <- var_relabel(iris, Sepal.Length = "Sepal Length of iris flower")
var_labels(x)

# }

Run the code above in your browser using DataLab