I have met a problem. I have a dataset. There is a string variable named country. I firstly destringed it and created a new variable labeled country_num.
Now I want to find the corresponding numeric values of some countries, like US, UK and China and so on. For example, if I want to search some numbers of countries, I have to find their string names and corresponding numbers one by one.
I tired it by using the command,
.
But it failed.
How can I search it quickly? Would you like to help me? Thanks a lot.
Now I want to find the corresponding numeric values of some countries, like US, UK and China and so on. For example, if I want to search some numbers of countries, I have to find their string names and corresponding numbers one by one.
I tired it by using the command,
summarize country_num if country == "United States"|"United Kingdom"
But it failed.
How can I search it quickly? Would you like to help me? Thanks a lot.
Comment