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

RE: st: String help


From   "Terra Curtis" <[email protected]>
To   <[email protected]>
Subject   RE: st: String help
Date   Wed, 5 Oct 2005 11:00:59 -0400

Thanks, Nick.  Your original solution worked perfectly.  And I think you're
right, -end- and -split- are useful, but in other contexts.
 

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Nick Cox
Sent: Wednesday, October 05, 2005 4:58 AM
To: [email protected]
Subject: RE: st: String help

This won't get one far in solving this problem. 
Nor will -split-. That is no criticism of either, as each was designed for
different problems. 

The problem needs lower-level functions. 

Nick
[email protected] 

[email protected]
 
> Try also the egen-function "ends". Using that you can split a string 
> into parts, specifying the partitioner.
                   
>              "Terra Curtis"                                   
> 
> I am dealing with a string variable called 'string' like the example 
> below (this is copied from the data browser):

*
*   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/


*
*   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