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

nice_names(x)

Arguments

x

A data frame

Examples

data(mtcars)
names(mtcars) <- toupper(names(mtcars))
names(mtcars) <- nice_names(mtcars)