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

RE: st: How to rename variables by adding a suffix

From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   RE: st: How to rename variables by adding a suffix
Date   Fri, 6 Aug 2004 15:22:35 +0100

No; it is not on SSC. 

-search renvars- shows 
that it is in the STB-60 files. Note carefully that 
the version of -renvars- in STB-60 was written 
by Jeroen Weesie and myself, and supersedes
the version still on Jeroen's website. 
The latter remains of use to people still
on Stata 6. 




show the difference. 

[email protected] 

Buzz Burhans
> -renvars-  by Jeron Weesie will do this. findit renvars will 
> find it for 
> installation, as I don't think it is on ssc
 >I have a simple question. How do I add a suffix to all 
> variables in my 
> >dataset. So suppose I want the variables WHEAT, MAIZE, CEREAL to be 
> >renamed to FOOD_WHEAT, FOOD_MAIZE, and FOOD_CEREAL. I can't use the 
> >command  * renpfix * because it only allows you to change 
> one suffix for 
> >another, such as to change GRAINWHEAT to FOOD_WHEAT by 
> typing the command
> >
> >renpfix grain food_
> >
> >I could do this manually, but when I want to add the suffix 
> food to, say, 
> >80 variables that becomes tedious. Any ideas?
> >

*   For searches and help try:

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