I am merging many files with similar, but not identical variable names. For example, start_year, startYear, yearStart may all be used in different files. Is there a way to ask Stata to check whether a variable exists and then rename it if it does? Essentially, I want to do the following:
rename (start_year startYear yearStart) (beginYear beginYear beginYear) without it returning any errors.
Thank you,
Krista
rename (start_year startYear yearStart) (beginYear beginYear beginYear) without it returning any errors.
Thank you,
Krista
Comment