Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Re: Problem with variable names using Insheet


From   Joseph Deckert <jdeckert@uoregon.edu>
To   <statalist@hsphsun2.harvard.edu>
Subject   Re: st: Re: Problem with variable names using Insheet
Date   Sun, 12 May 2013 20:22:07 -0700

That worked beautifully. Thanks a ton!

Joe Deckert

On 2013/05/12 19:46, Joseph Coveney wrote:
. . . and it might help to follow-up defining the local macro by
actually using it somewhere.

rensfix aci
renpfix aci
foreach var of varlist _all {
    local variable_label : variable label `var'
local variable_label : subinstr local variable_label "+aci-" "", all
    label variable `var' "`variable_label'"
}

Joseph Coveney



*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index