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

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

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


formatters documentation built on Aug. 25, 2023, 5:18 p.m.