Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: breaking strings


From   "Terra Curtis" <[email protected]>
To   <[email protected]>
Subject   st: breaking strings
Date   Wed, 28 Sep 2005 17:08:11 -0400

Dear Statalist,

I am trying to find a string function (or equivalent series of code lines)
to accomplish the following.  I have a string variable which contains
various company names, eli lilly & co, for example.  I want to break this
string into 4 separate data points, namely eli, lilly, &, co.  The delimeter
is a space.  Anyone know how to do this?

Thanks,
Terra

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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