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

Re: st: Rename question


From   "Winfield Scott Burhans" <[email protected]>
To   [email protected]
Subject   Re: st: Rename question
Date   Wed, 25 Aug 2004 13:55:28 -0400 (EDT)

Clive's suggestion is a good one, but renvars is not on ssc,

-findit renvars- will bring up

STB-60  dm88  . . . . . . . .  Renaming variables, multiply and
systematically
        (help renvars if installed) . . . . . . . . .  N. J. Cox and J.
Weesie
        3/01    pp.4--6; STB Reprints Vol 10, pp.41--44
        renames variables by changing prefixes, postfixes, substrings,
        or as specified by a user supplied rule



It is in the dm88 package at http://www.stata.com/stb/stb60/ so you should
be able to

 net install http://www.stata.com/stb/stb60/dm88


Buzz Burhans


> 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: [email protected]
> 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/
>


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