var_relabel: Copy and change variable labels of a 'data.frame'

View source: R/labels.R

var_relabelR Documentation

Copy and change variable labels of a data.frame

Description

Relabel a subset of the variables.

Usage

var_relabel(x, ...)

Arguments

x

(data.frame)
a data frame object.

...

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

Value

A copy of x with labels modified according to ...

Examples

x <- var_relabel(iris, Sepal.Length = "Sepal Length of iris flower")
var_labels(x)


formatters documentation built on Sept. 13, 2024, 1:10 a.m.