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
Rename from last part of label that includes "."Hello! I'm trying to rename variables from the label, but this label includes dots (".") Example La…
Count by groups 5 years after the current yearDear Statalist, I am wondering if you can help me to count the number of times a given attribute is …
Remove blank lines from string colvectorIf I have a string colvector in Mata, how can I create a new string colvector that removes rows with…
Double selection lassoDear statalist, I have attempted a logit regression and now I need to attempt a double selection la…
fixed effects and constant estimatesDear All, Does anyone know the relationship among the following commands? I mean how can we adjust t…
Subscribe to:
Post Comments (Atom)
0 Response to How to split variable that does not have spaces
Post a Comment