Hi everyone,
I have a dataset with sectoral trade values by country. I would like to merge this dataset with a small dataset that I am creating manually. Please find below an example of the original dataset:
My question here is that I would like to merge some observations twice with two different values in the other dataset (that I am creating manually). Please find below an example:
Here for example I would like to merge the observation "SD" in the original dataset twice with two observations in the manually created dataset: once with isiccode 55 and once with isiccode 63.
I would be grateful if you could kindly advise whether I should repeat the observations that have to be merged twice. If that is the case, how would you recommend to do it?
I am sorry in advance if this has been asked before and I couldn't locate the answer.
Many thanks in advance.
Jala Youssef
I have a dataset with sectoral trade values by country. I would like to merge this dataset with a small dataset that I am creating manually. Please find below an example of the original dataset:
country | year | code | sector | tradevalue |
EGY | 2002 | SD | Travel | |
EGY | 2002 | SG | Financial services | |
EGY | 2002 | SJ | Other business services | |
JOR | 2002 | SD | Travel | |
JOR | 2002 | SG | Financial services | |
JOR | 2002 | SJ | Other business services |
My question here is that I would like to merge some observations twice with two different values in the other dataset (that I am creating manually). Please find below an example:
code | sector | isiccode | isiccodedescription |
SD | Travel | 55 | Hotels and restaurants |
SD | Travel | 63 | Supporting and auxiliary transport activities; activities of travel agencies |
SG | Financial services | 65 | Financial intermediation, except insurance and pension funding |
SJ | Other business services | 74 | Other business activities |
Here for example I would like to merge the observation "SD" in the original dataset twice with two observations in the manually created dataset: once with isiccode 55 and once with isiccode 63.
I would be grateful if you could kindly advise whether I should repeat the observations that have to be merged twice. If that is the case, how would you recommend to do it?
I am sorry in advance if this has been asked before and I couldn't locate the answer.
Many thanks in advance.
Jala Youssef
Comment