View source: R/rename_to_varlabel.R
rename_to_var_label | R Documentation |
Rename a variable with it's label
rename_to_var_label(df)
df |
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
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.