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

Re: st: quick question


From   Donald Spady <dspady@ualberta.ca>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: quick question
Date   Wed, 25 Feb 2004 15:13:45 -0700

Sorry, some of my response got cut off: it should read
              for var Name: replace Name = lower(Name) if Name == X
Don
At 03:01 PM 2/25/2004, you wrote:
lower(Name) if Name == X
Don

At 02:37 PM 2/25/2004, you 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.


Peter A. Lachenbruch
Director, Division of Biostatistics, OBE/CBER
Tel: (301) 827-3320
FAX: (301) 827-5218

*
*   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/
Donald Spady

Department of Pediatrics
2C3.92 WMC, University of Alberta
Edmonton, Alberta, Canada
T6G 2R7

780-407-1244:O
780-407-7136:F

Nature has no reset button.

*
*   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/
Donald Spady

Department of Pediatrics
2C3.92 WMC, University of Alberta
Edmonton, Alberta, Canada
T6G 2R7

780-407-1244:O
780-407-7136:F

Nature has no reset button.

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