Hey guys, I would have the following question. I have a variable, that sometimes contains something in square brackets. I would like to delete everything that is in sqaure brackets.
To illustrate:
So I would love to create a new variable -- without all the mess that is in square brackets:
Is it possible in Stata to create such a new variable?
To illustrate:
Code:
number obervation 1 [blablabla] Real Mardrid 2 [oink wuff] Arsenal London 3 [tztzt] Manchester City 4 [blablabla] Juventus Turin
Code:
number obervation new_variable 1 [blablabla] Real Mardrid Real Madrid 2 [oink wuff] Arsenal London Arsenal London 3 [tztzt] Manchester City Manchester City 4 [blablabla] Juventus Turin Juventus Turin
Comment