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

st: Re: easier way to rename?


From   "Marcela Perticara" <[email protected]>
To   <[email protected]>
Subject   st: Re: easier way to rename?
Date   Fri, 13 Sep 2002 17:42:30 -0500

take a look at renvars

findit renvars

I think it has what you want.

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



--------------------------------------------
Universidad Alberto Hurtado
Erasmo Escala 1835
Santiago, Chile
Phono: 671-7130 anexo 267
http://www.ilades.cl/economia/index.html
----- Original Message -----
From: "Radu Ban" <[email protected]>
To: <[email protected]>
Sent: Friday, September 13, 2002 4:34 PM
Subject: st: easier way to rename?


> I want to rename my variables (which now have long names since they come
> from an excel sheet). I would like to know if there is a quick way to
rename
> a recurring word to an abbreviation.
> For example, a lot of my variables contain the word 'households' and I
would
> like to rename it to 'hh' for easier access later. I know there's renpfix,
> but this only takes care of characters at the start of the variable name.
> Thank you,
>
> Radu Ban
>
>
>
> *
> *   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/


______________________________________
Universidad Alberto Hurtado
http://www.uahurtado.cl
*
*   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