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

st: Re: quick question

From   Roger Newson <>
Subject   st: Re: quick question
Date   Wed, 25 Feb 2004 21:56:59 +0000

At 16:37 25/02/04 -0500, Peter A. Lachenbruch wrote:
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.


Roger Newson
Lecturer in Medical Statistics
Department of Public Health Sciences
King's College London
5th Floor, Capital House
42 Weston Street
London SE1 3QD
United Kingdom

Tel: 020 7848 6648 International +44 20 7848 6648
Fax: 020 7848 6620 International +44 20 7848 6620
or 020 7848 6605 International +44 20 7848 6605

Opinions expressed are those of the author, not the institution.

* For searches and help try:

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