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   Gary Longton <glongton@fhcrc.org>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: upper case to lower case for all variable names
Date   Tue, 15 Nov 2005 21:06:26 -0800

Jun Xu wrote:

Is there a way to change my variable names from all upper case to all lower case? Thanks a lot!
foreach v of varlist _all {
    rename `v' `=lower("`v'")'
}

- GL
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index