Here comes an easy one... I have two variables with country names and want to create an identifier for each pair.
Code:
gen strboth = country_o + country_d
egen pair = group (strboth)
Does not work because it treats different ordering as different groups. Any ideas how to approach this? Regular expressions?