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" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
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 
n.j.cox@durham.ac.uk 

> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu
> [mailto:owner-statalist@hsphsun2.harvard.edu]On Behalf Of Doug Owens
> Sent: 09 May 2005 16:19
> To: statalist@hsphsun2.harvard.edu
> 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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index