rename_to_var_label: Rename a variable with it's label

View source: R/rename_to_varlabel.R

rename_to_var_labelR Documentation

Rename a variable with it's label

Description

Rename a variable with it's label

Usage

rename_to_var_label(df)

Arguments

df

Details

We haven't used this on EAS (yet) but it seems so useful to me that I think we should keep it in our package

Examples

p_load(expss)
mtcars <- apply_labels(mtcars[,1:3] ,
                      mpg = "Miles/(US) gallon",
                      cyl = "Number of cylinders",
                      disp = "Displacement (cu.in.)",
                     )
rename_to_var_label(mtcars)

rethinkpriorities/rp-r-package documentation built on Jan. 7, 2023, 10:11 p.m.