Columns from FAOSTAT frequently have parentheses and other non-alphanumeric characters. This suite of functions seeks to give control over these names for easier data analysis
change_case(
old_names,
new_case = c("make.names", "unsanitised", "unsanitized", "snake_case"),
...
)
character. Vector of the names to be changed
character. Choice of new names:
make_names - (default) use the make.names function in R to sanitise names
unsanitised/unsanitized - Return names as they are
snake_case - Names are converted to lowercase and separators are replaced with underscores
extra arguments to pass to sanitisation function (only works for make.names)