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

Re: st: Re: replace a string variable


From   Doug Owens <owens.doug@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Re: replace a string variable
Date   Mon, 9 May 2005 11:19:03 -0400

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/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index