Hi friends
I'm pretty new with Stata programming.
I have a large amount of Stata files without variable labels (each file has different variables).
I have also one csv file (as a metadata with more than 1000 rows) contains all variable names and variable labels in two columns (with heading MyVar and MyLabel).
I need to load each Stata file from directory and loop over its variable names and if it matches with the variable name in csv, assign the label to it.
Could you please help me about how to write .do file for this task?
I'm pretty new with Stata programming.
I have a large amount of Stata files without variable labels (each file has different variables).
I have also one csv file (as a metadata with more than 1000 rows) contains all variable names and variable labels in two columns (with heading MyVar and MyLabel).
I need to load each Stata file from directory and loop over its variable names and if it matches with the variable name in csv, assign the label to it.
Could you please help me about how to write .do file for this task?
Comment