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)

Arguments

x

A data frame

Value

A data frame with nicely formatted names

Examples

if (FALSE) {
data(mtcars)
names(mtcars) <- toupper(names(mtcars))
mtcars %>% pipe_nice_names()
}