Clean column names by replacing all spaces and punctuation with a single underscore
Arguments
- x
Character vector OR any object with
colnames()method, like matrix, data.frame, data.table, tibble, etc.- lowercase
Logical: If TRUE, convert to lowercase.
- uppercase
Logical: If TRUE, convert to uppercase.
- titlecase
Logical: If TRUE, convert to Title Case.