+ Reply to Thread
Results 1 to 2 of 2

Thread: Converting variable labels from upper to lowercase

  1. #1
    Points: 469, Level: 9
    Level completed: 38%, Points required for next Level: 31

    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Converting variable labels from upper to lowercase



    How would one accomplish something like that in Stata?
    Many thanks!

  2. #2
    RoboStataRaptor
    Points: 7,397, Level: 57
    Level completed: 24%, Points required for next Level: 153
    bukharin's Avatar
    Location
    Sydney, Australia
    Posts
    1,025
    Thanks
    9
    Thanked 243 Times in 236 Posts

    Re: Converting variable labels from upper to lowercase


    Here's one way to do it. I'm sure there's a slightly more efficient way...
    Code: 
    sysuse auto, clear
    ds // obtain list of variables
    local myvars `r(varlist)'
    foreach var of local myvars {
    	lab var `var' `"`=upper("`: var lab `var''")'"'
    }

  3. The Following User Says Thank You to bukharin For This Useful Post:

    sviatko (08-10-2012)

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts








Advertise on Talk Stats