Hi Everyone,
I would like to split (eg. Italy2019) into two variables (eg.country= Italy and year =2019).
Since there is no space, I could not do it.
Could someone please provide me information on how to split 'country' name and 'year' into two variable ?
My list:
country
Italy2019
Jamaica2010
Russia2012
.....
Thank you.
Related Posts with How to split variable that does not have spaces
Quintile SortingHello I have a dataset of investment funds and want to divide the variable Turnover into 5 quintiles…
Repeated cross-section: gen new variable combining three survey yearsHello, In order to obtain repeated cross-sectional data, I have appended 3 datasets stemming from d…
Fixed effects model drops all variables due to collinearityI am trying to do a fixed effects regression on survey data, however when I do so all the variables …
Adjust for time constant covariate in mixed effects regression using multiple imputationI would like to ask for advice regarding the following question: I would like to compute a mixed eff…
Problem setting base category in interaction termHi everyone, I have a question about choosing the base level of a factor variable in an interaction …
Subscribe to:
Post Comments (Atom)
0 Response to How to split variable that does not have spaces
Post a Comment