Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • For loop

    I have about 110 variables that I have to label to "Home add_testJan_number", so I would like to automate it, but I dont know how to do it. if anybody could advise, I will greatly appreciate it. Thanks

    foreach i of varlist _all{
    foreach j in Jan Feb{
    forvalue k
    la var i"Home add_testj_"
    }
    }
    }

  • #2
    Would suggest you repost this question to the section "General". As mentioned in the FAQ, posts in Sandbox will usually not be answered.

    Comment

    Working...
    X