unstacking only one country
Posted: Sat Nov 07, 2020 4:58 am
hello ...
my goal is to use only a single country, out of a panel data set, for the purpose of a single-country time series ...
I start with an excel file:
COUNTRY | VARIABLE | YR1980 | yr1981 | YR1982
---------------------------------------------------------------
japan | gdp | 111 | 112 | 113
france| gdp | 211 | 212 | 213
brazil | gdp | 311 | 312 | 313
japan | cpi | 121 | 122 | 123
france| cpi | 221 | 222 | 223
brazil | cpi | 321 | 322 | 323
I have imported it into a page, then stacked it ... of course it contains all the data ...
so now I want to unstack it ... but I would like to tell it to only pull out, say, "brazil" ...
and once it pulls out "brazil" data, the "brazil" identifier should no longer exist, as the final destination is time series ...
Is there a way to do this??
(alternative: only import "brazil" in the first place)
- thanks, Shannon
my goal is to use only a single country, out of a panel data set, for the purpose of a single-country time series ...
I start with an excel file:
COUNTRY | VARIABLE | YR1980 | yr1981 | YR1982
---------------------------------------------------------------
japan | gdp | 111 | 112 | 113
france| gdp | 211 | 212 | 213
brazil | gdp | 311 | 312 | 313
japan | cpi | 121 | 122 | 123
france| cpi | 221 | 222 | 223
brazil | cpi | 321 | 322 | 323
I have imported it into a page, then stacked it ... of course it contains all the data ...
so now I want to unstack it ... but I would like to tell it to only pull out, say, "brazil" ...
and once it pulls out "brazil" data, the "brazil" identifier should no longer exist, as the final destination is time series ...
Is there a way to do this??
(alternative: only import "brazil" in the first place)
- thanks, Shannon