Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: loop to rename vars


From   "Sergiy Radyakin" <[email protected]>
To   [email protected]
Subject   Re: st: loop to rename vars
Date   Fri, 10 Oct 2008 15:23:25 -0400

Does not seem to work:

//-----------------------------------------------------
clear
sysuse auto
renvars \ var1-var`c(k)'
\ invalid name
r(198);

renvars var1-var`c(k)'
r(111);

renvars * var1-var`c(k)'
variable var1 not found
r(111);

which renvars
c:\ado\plus\r\renvars.ado
*! 2.2.1  15aug2000  Jeroen Weesie/ICS

version
version 9.2
*************************************************************

Perhaps I am doing something wrong?? Is slash required? Did you mean -renamev- ?




© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index