Hello, I've seen several posts about this but none quite answered my question. I have a list of country identification numbers, and a matching list of country names. I would like to label the entire numeric id list using the string country_name variable. Defining each country label individually would be very time consuming. Please see below. Thank you!
* Example generated by -dataex-. To install: ssc install dataex
clear
input str52 country_name int country_num
"Afghanistan" 2
"Albania" 4
"Algeria" 59
"American Samoa" 10
"Andorra" 5
"Angola" 3
"Antigua and Barbuda" 11
"Arab World" 6
"Argentina" 8
"Armenia" 9
"Aruba" 1
"Australia" 12
"Austria" 13
"Azerbaijan" 14
"Bahamas, The" 22
"Bahrain" 21
"Bangladesh" 19
* Example generated by -dataex-. To install: ssc install dataex
clear
input str52 country_name int country_num
"Afghanistan" 2
"Albania" 4
"Algeria" 59
"American Samoa" 10
"Andorra" 5
"Angola" 3
"Antigua and Barbuda" 11
"Arab World" 6
"Argentina" 8
"Armenia" 9
"Aruba" 1
"Australia" 12
"Austria" 13
"Azerbaijan" 14
"Bahamas, The" 22
"Bahrain" 21
"Bangladesh" 19
Comment