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

RE: st: String help


From   "Terra Curtis" <terra.curtis@cambridgefinance.com>
To   <statalist@hsphsun2.harvard.edu>
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: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Nick Cox
Sent: Wednesday, October 05, 2005 4:58 AM
To: statalist@hsphsun2.harvard.edu
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
n.j.cox@durham.ac.uk 

jkuhl@worldbank.org
 
> 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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index