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

st: RE: Rename question


From   "David Harrison" <[email protected]>
To   <[email protected]>
Subject   st: RE: Rename question
Date   Wed, 25 Aug 2004 17:23:26 +0100

foreach v in varlist jan02 - jul04 {
	rename `v' m`v'
}

David
[email protected]

-----Original Message-----
From: samani Lamabadusuriya
[mailto:[email protected]]
Sent: 25 August 2004 17:14
To: '[email protected]'
Subject: st: Rename question


Hi all,
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?
Many Thanks
Sam

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 

************************************************************************
The opinions expressed in this email represent those of the individual and not necessarily those of Alliance UniChem plc. The contents of the email may be privileged and confidential. If received in error please advise the sender then delete from your system. If you are not the intended recipient you should not copy it or use it for any purpose, nor disclose its contents to any person.
Alliance UniChem plc cannot accept liability for any damage you incur as a result of virus infection. 
************************************************************************


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