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

Re: st: upper case to lower case for all variable names


From   Rafal Raciborski <[email protected]>
To   [email protected]
Subject   Re: st: upper case to lower case for all variable names
Date   Wed, 16 Nov 2005 00:03:28 -0500

assuming your variables go from VAR1 to VAR999:

macro drop _all
foreach i of varlist VAR1-VAR999 {
	local j = lower("`i'")
	rename `i' `j'
	macro drop j
}


================
Rafal Raciborski
Graduate student
Department of Political Science
Emory University
301 Tarbutton Hall
1555 Dickey Drive Atlanta, GA 30322
404-378-9826 (home)
[email protected]
http://www.roofoos.net/


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