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

Re: st: quick question


From   Marcello Pagano <Pagano@hsph.harvard.edu>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: quick question
Date   Wed, 25 Feb 2004 16:48:28 -0500

Can you look at letter by letter and look at the ASCII representation, noting that capital letters go from 101 to 132 (octal) and the lower case from 141 to 172 with the respective pairs (upper, lower) being exactly 40 apart?

m.p.

Lachenbruch, Peter 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/
--
______________________________________________________________________

Marcello Pagano
Biostatistics Department               Tel: 1-617-432-4911
Harvard School of Public Health        Fax: 1-617-739-1781
655 Huntington Avenue                  email:pagano@biostat.harvard.edu
Boston, MA  02115                      http://biosun1.harvard.edu/~bio200
USA

eppur si muove


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