View source: R/nice_utilities.R
pipe_nice_names | R Documentation |
Turns column names of data frames into standardised format. Dots are replaced with underscores, trailing underscores are removed and everything is made lower case. Punctuation and spaces are also replaced by underscores and double underscores are removed last
pipe_nice_names(x)
x |
A data frame |
A data frame with nicely formatted names
## Not run: data(mtcars) names(mtcars) <- toupper(names(mtcars)) mtcars %>% pipe_nice_names() ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.