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

Re: st: Rename question


From   "Clive Nicholas" <Clive.Nicholas@newcastle.ac.uk>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Rename question
Date   Wed, 25 Aug 2004 18:00:16 +0100 (BST)

Samani Lamabadusuriya wrote:

> I am new to Stata and would really appreciate your help with the rename
> function.  I'd like to rename range of variables jan02 - jul04 to mjan02 -
> jul04, is there a quicker way to do this than using rename a million
> times?

In addition to David's ingenious code, check out Jeroen Weesie's -renvars-
package:

. ssc desc renvars

CLIVE NICHOLAS        |t: 0(044)191 222 5969
Politics              |e: clive.nicholas@ncl.ac.uk
Newcastle University  |http://www.ncl.ac.uk/geps
*
*   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