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

Re: st: rename


From   "Erik �. S�rensen" <[email protected]>
To   [email protected]
Subject   Re: st: rename
Date   Tue, 19 Nov 2002 10:19:41 -0500

On tirsdag, nov 19, 2002, at 10:12 America/Montreal, Hans J. Baumgartner wrote:

I have tried:
For num 1/250: rename vX v251 in X

But the rename- does not allow the in- option.

try:
forvalues t=1/250 {
	local name = v251[`t']
	rename v`t' `name'
}

Erik
--
Erik �. S�rensen,  <http://www.geocities.com/erik_oiolf/>.
phd student (economics), Norwegian School of Economics.
currently visiting Queen's University, Kingston, Ontario.

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