stataqueries
08-26-2010, 12:16 PM
Hi all,
I've got 10 different string variables that I want to consolidate into one so I did this:
gen newvar= var1+var2+var3+var4 etc
However when I did this, the info in my new variable is simply a long string of letters which is very difficult to read (it's a string variable). Is there a way to create this new variable whilst adding a space or punctuation or something between the different the inidividual variables?
Many thanks!
I've got 10 different string variables that I want to consolidate into one so I did this:
gen newvar= var1+var2+var3+var4 etc
However when I did this, the info in my new variable is simply a long string of letters which is very difficult to read (it's a string variable). Is there a way to create this new variable whilst adding a space or punctuation or something between the different the inidividual variables?
Many thanks!