Dear STATAlisters,
I have a column of text, which also contains number(s). It has some peculiarities. First, the number’s length can vary from 1 to 5 digits. Second, the number can be all numeric or alphanumeri, but if it is alphanumeric, it usually has alphabets in the first or last place. Third, the text can contain more than one number.
I tried splitting the text using space as delimiter but it resulted in more than 100 variables as the text can be long for some observations.
How should I tackle such issue? Any guidance will be much much appreciated.
Thanks.
Lg Mg
Related Posts with Extract alphanumeric ids from text
log usinghi friends. i am run this code but faced with error.although it is run without error yesterday, i am…
Plotting categorical variablesHi all, can any of you tel me how I can get ht below graph? My rep variable is life satisfaction a…
Export Regression results without Fixed Effects using -esttab-I have the following code for exporting regression results to excel. However I don't want the fixed …
Hypothesis Testing on coefficientsHi I am interested in testing the hypothesis highlighted in the picture. Ho: gamma>=beta and Ha:…
Identifying units of analysis in STATAHi, I'm starting a master thesis and am very new to STATA with very little experience. I am looking …
Subscribe to:
Post Comments (Atom)
0 Response to Extract alphanumeric ids from text
Post a Comment