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

RE: st: RE: Substring extraction based on punctuation


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: st: RE: Substring extraction based on punctuation
Date   Thu, 30 Jun 2005 20:56:22 +0100

-tokenize- is indeed a good low-level tool. 

As your problem involves several variables, 
-split- would presumably save you some programming: 
with -tokenize- I think you would need to 
loop over observations as well as variables 
to do what you want. 

Nick 
n.j.cox@durham.ac.uk 

Michael S. Hanson
 
> On Jun 29, 2005, at 7:43 PM, David E Moore wrote:
> 
> > Have you considered -tokenize- using "," as the parse character?
> 
> 	Ah: I was not familiar with the -parse- option.  With 
> it, -tokenize- 
> works like a charm for my problem.  Thanks!

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