Creates a data dictionary and switches out special characters
create_dict.Rd
Creates a data dictionary for a data set that originally had special characters as variable names.
Value
If the out
parameter is NULL
then only character vector with the
new variable names is returned.
Details
The x
must be a named object as the main purpose of this function
is create a data dictionary for a data set that has special characters in the
variable names.
Every time this function is executed the named object x
alters the names to
remove special character. When the out
parameter is specified then a data
dictionary is created with the original and new variable names. The current
version of this function adjusts for special characters such as spaces, "-",
"/", "%", and "#". The naming convention used follows the
Tidyverse style guide.