Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

RE: st: Re: global keys


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: st: Re: global keys
Date   Wed, 19 Sep 2007 15:55:13 +0100

This is so cute that noting that 

keep if substr(site_02, 1, 3) == "C18" 

will (probably) do the same thing is rather
boring by comparison. 

keep if inrange(site02, "C180", "C189") 

may have been mentioned earlier in the thread. 

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

Brendan Halpin
 
> Or use regular expressions:
> 
> . keep if regexm(site_02,"C18[0-9]")

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