powered by
Ensure column names are valid
fix_names(x, lower = FALSE)
Data.frame or vector of (column) names
Set letters to lower case (TRUE or FALSE)
Remove symbols, trailing and leading spaces, and convert to valid R column names. Opinionated version of make.names
make.names
# NOT RUN { fix_names(c(" var-name ", "$amount spent", "100")) # }
Run the code above in your browser using DataLab