Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: Change value labels to lowercase


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: Change value labels to lowercase
Date   Thu, 6 Apr 2006 00:10:55 +0100

. label def upper 1 STATA 2 IS 3 THE 4 NAME 

. labvallc upper lower

. lab li lower
lower:
           1 stata
           2 is
           3 the
           4 name

. lab li upper
upper:
           1 STATA
           2 IS
           3 THE
           4 NAME

Nick 
n.j.cox@durham.ac.uk 

> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu
> [mailto:owner-statalist@hsphsun2.harvard.edu]On Behalf Of Friedrich
> Huebler
> Sent: 05 April 2006 23:51
> To: statalist@hsphsun2.harvard.edu
> Subject: st: Change value labels to lowercase
> 
> 
> I want to change the value labels in my data from uppercase to
> lowercase. Assume I have data like this:
> 
> variable     value
> name         label
> -------------------
> var019
> var020       VAR020
> var021
> var022
> var023       VAR023
> var024       VAR024
> 
> Variable names are all lowercase. Value labels are the same as the
> variable names but are all uppercase. How can I loop through all
> variables, identify those that have a value label, and change that
> value lable to lowercase?
> 
> Friedrich Huebler
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> *
> *   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/
> 

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