I have a data set that I got with some oddball names like PyrexIA or
CuTaneousDA, etc. and I'd like to rename everything so all characters were
lowercase. Is there an easy way to do this via a foreach loop and a simple
command, or do I have to
rename PyrexIA pyrexia
rename CuTaneousDA cutaneousda
I looked at the lower function but that seems to operate on variables rather
than names.
Use the -renvars- package, written by Nick Cox and Jeroen Weesie. That way,
you do not even need a -foreach- loop. In Stata, type -findit renvars- to
find out more.