I am trying to merge a .txt header file to my dataset (with over 114 variables). Is there a way mass rename variables based on another file?
This is the dataset
This is the header file
This is the desired file
This is the dataset
Code:
* Example generated by -dataex-. For more info, type help dataex clear input float(var1 var2 var3) 1 2 3 2 3 4 end
Code:
* Example generated by -dataex-. For more info, type help dataex clear input str4 varcode str6 varname "1" "Age" "2" "Race" "3" "Gender" end
Code:
* Example generated by -dataex-. For more info, type help dataex clear input float(Age Race Gender) 1 2 3 2 3 4 end
Comment