Clean Variable Name
clean_variable_name.Rd
This function removes digits, spaces, and special characters from a variable name. If any of these are present, they will be replaced with an underscore '_'.
Details
This function will check the input variable name for the presence of digits, spaces, and special characters. If any of these are found, they will be removed from the variable name and replaced with an underscore '_'. Additionally, it will check if the cleaned name is not one of the reserved names "interactions" or "correlations" which are not allowed as variable names.