Note that -renvars- (STB-60) is more or
less the same answer:
-renvars- is based on a -forvalues- loop, but
it is just out of sight of the user.
Nick
[email protected]
David Harrison
> Yes, e.g.
>
> foreach v of varlist A B C {
> ren `v' `=lower("`v'")'
> }
>
> But for flexible manipulation of variable names (including
> changing case), look at the -renvars- package:
>
> findit renvars
Paolo Grillo, MD
> I would like to rename a lot of varname from UPPER to lower case
> maintaining the same variable name.
> Is it possible to use foreach?.
*
* 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/