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

st: change case of variable names

From   "Lachenbruch, Peter" <>
To   "'statalist (statalist)'" <>
Subject   st: change case of variable names
Date   Mon, 1 Aug 2005 16:28:42 -0400

Title: change case of variable names

I have a data set with about 600 variables and all are in upper case.  Is there a simple way to make the case lower?

I played with ren ARM lower("ARM") that didn't work.  I suspect I'm missing something very obvious.  What I'd eventually like to do is something like

foreach v of varlist A-Z{

ren `v' lower(`v')


but that won't work.

Thanks for any help.

Peter A. Lachenbruch
Director, Division of Biostatistics
1401 Rockville Pike, HFM-215
Rockville, MD 20852

Phone:  301-827-3320
FAX:     301-827-5218

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