Ensure column names are valid
fix_names(x, lower = FALSE)
x | Data.frame or vector of (column) names |
---|---|
lower | 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
#> [1] "var_name" "amount_spent" "X100"