|  | 
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
RE: st: Re: global keys
From 
 
"Nick Cox" <[email protected]> 
To 
 
<[email protected]> 
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 
[email protected] 
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–2025 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |