Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: RE: Re: how can one quickly remove all variable labels?
From
"Sarah Edgington" <[email protected]>
To
<[email protected]>
Subject
st: RE: Re: how can one quickly remove all variable labels?
Date
Wed, 11 Sep 2013 17:45:33 -0700
Using _strip_labels takes off the value labels.
If the intent is to strip off variable labels rather than value labels you could just relabel all the variables with an empty label:
foreach var of varlist _all {
label var `var' ""
}
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Joseph Coveney
Sent: Wednesday, September 11, 2013 5:06 PM
To: [email protected]
Subject: st: Re: how can one quickly remove all variable labels?
László Sándor wroe:
I thought this would be useful to have on the record, I could not Google up anything.
--------------------------------------------------------------------------------
Quickly, it seems.
-help _strip_labels-
Perhaps,
foreach var of varlist _all {
Capture _strip_labels `var'
}
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/