|
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: RE: RE : Help with string problem
From
"Nick Cox" <[email protected]>
To
<[email protected]>
Subject
st: RE: RE : Help with string problem
Date
Fri, 25 Aug 2006 13:01:00 +0100
This can be telescoped to
gen apatkey2 = substr(apatkey,strpos(apatkey,"C"), 9)
Nick
[email protected]
Nicolas Couderc
> If all your ids are 9 chars wide and begining with a capital
> C, to deleting
> everything else than the id, you can try :
>
> gen apatkey2=""
> replace apatkey2= substr(apatkey,strpos(apatkey,"C"), 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–2024 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |