[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: St: variable editing

From   "Friedrich Huebler" <>
Subject   Re: st: St: variable editing
Date   Tue, 24 Jun 2008 22:54:09 -0400


If the name of the variable is "country" you can remove the asterisks
with this command:

. replace country = subinstr(country,"*","",.)


On Tue, Jun 24, 2008 at 7:46 PM, Eric Uslaner <> wrote:
> Greetings,
> I have several data sets (from the World Bank Governance indicators) where the names of countries sometimes have one or two asterisks following their names, e.g.:
> Afghanistan
> Albania**
> Armenia
> Azerbaijan*
> etc.  I want to get rid of the asterisks to merge them with a master data set.  Aside from editing each name individually, I presume that there is an easier way that I just don't know.  Any help would be greatly appreciated.
> Thanks,
> Ric Uslaner
*   For searches and help try:

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