Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: RE: problems with abbrev()


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   st: RE: problems with abbrev()
Date   Mon, 19 Jan 2009 15:27:54 +0100

Line for the server...

***********
clear*
input str20 mystring
"acquired by alcatel"
"acquired by cisco"
end
g newstring=word( mystring,1)
l
***********

HTH
Martin


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Sara Brighi
Sent: Sunday, January 18, 2009 5:47 PM
To: [email protected]
Subject: st: problems with abbrev()

I have come across a problem. I have a string variable made up of 2338 
observations. These observations differ in "private", "public", 
"defunct" and "acquired...."; but the "acquired" observations ever 
specify sth more (for instance "acquired by alcatel", or "acquired by 
cysco"..ecc). I need to use abbrev() in order to have only "acquired". 
How can I use it?
Thank you very much!
Sara


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index