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

st: How to rename variables by adding a suffix


From   TEWODAJ MOGUES <[email protected]>
To   Stata _ <[email protected]>
Subject   st: How to rename variables by adding a suffix
Date   Tue, 10 Aug 2004 19:12:05 -0400

Dear Bill, Buzz, Nick, Ronan, A. Diallo:

Thanks for your responses! Bill, the rensfix and renpfix didn’t do the trick. Buzz, I installed renvars. It is a neat command and does what I wanted and much more. Ronan, thanks, the for…rename  option is a nice and simple alternative to _renvars_. A. Diallo: the   for *  command is even more to the point since I wanted to add a prefix to all my variables rather than having to list them all. Nick, thanks for pointing me to the updated version of renvars that that you programmed with Jeron. _foreach_ is probably yet another alternative, but I should be ok with renvars and for…rename.

Again, thanks much,
Tewodaj


~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~
Tewodaj Mogues
Dept. of Agricultural and Applied Economics
University of Wisconsin - Madison
427 Lorch St. #317, Taylor Hall
Madison, WI 53706

*
*   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