rename_with_labels | R Documentation |
Rename every column of a dataframe with its label
rename_with_labels(df, except = NULL)
df |
a data.frame |
except |
< |
A dataframe which names are copied from the label attribute
Dan Chaltiel
https://stackoverflow.com/q/75848408/3888000
rename_with_labels(mtcars2[,1:5], except=5) %>% names()
rename_with_labels(iris2, except=Sepal.Length) %>% names()
rename_with_labels(iris2, except=starts_with("Pet")) %>% names()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.