I have data that resembles the following:
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input str12 var2 int var5 float(var6 var7 var8) "Country Code" 1960 1961 1962 1963 "ABC" 12 32 12 3 "BCD" 3 21 32 12 end
In the above, the first row contains the variable names. So for instance, the first column contains country code, and the subsequent column contains data by different years. Unfortunately, the *.csv file I imported this from does not allow me to select the option to treat the first row as variable names. Is there any way to replace variable names with the first row?
Many thanks,
CS
0 Response to Replace first row with variable names
Post a Comment