Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Nick Cox <njcoxstata@gmail.com> |
To | "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu> |
Subject | Re: st: Re: Problem with variable names using Insheet |
Date | Mon, 13 May 2013 07:17:38 +0100 |
Excellent advice. For the record, -renpfix- is, and always was, an official command. Nick njcoxstata@gmail.com On 13 May 2013 03:46, Joseph Coveney <stajc2@gmail.com> 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/