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

RE: st: Re: replace a string variable


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   RE: st: Re: replace a string variable
Date   Mon, 9 May 2005 16:57:38 +0100

This makes it a little difficult to keep track of what has 
not yet been identified as OK. See my earlier 
posting for another way to do it. 

Nick 
[email protected] 

> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]]On Behalf Of Doug Owens
> Sent: 09 May 2005 16:19
> To: [email protected]
> Subject: Re: st: Re: replace a string variable
> 
> 
> what about
> 
> replace vend = "STRYKER" if index(vend,"STRYKER")
> replace vend = "ZIMMER" if index(vend,"ZIMMER")
> replace vend = "SULZER" if index(vend,"SULZER")
> 
> then there should onyl be a few lines with typos left over, e.g.,
>   STYKER ITALIA SRL
> 
> *
> *   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index