Hi, I want to combine two datasets. Here is an example of what i have:
Dataset A:
Dataset B:
And i want two combine data set A with data set B with a new variable of the index by contry. Like this:
Thank you
Dataset A:
| id | Country | Gender | Income | Education |
| 1 | E | M | 100 | 9 |
| 2 | S | F | 100 | 10 |
| 3 | V | M | 50 | 7 |
| 4 | S | M | 90 | 8 |
| Contry | Index |
| E | 5 |
| S | 10 |
| V | 8 |
| id | Country | Gender | Income | Education | Index |
| 1 | E | M | 100 | 9 | 5 |
| 2 | S | F | 100 | 10 | 10 |
| 3 | V | M | 50 | 7 | 8 |
| 4 | S | M | 90 | 8 | 10 |

Comment