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

st: RE: RE: Rename from UPPER to lowercase

From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: RE: Rename from UPPER to lowercase
Date   Fri, 28 Jan 2005 13:27:17 -0000

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. 

[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:

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