Bookmark and Share

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]

Re: st: how can one quickly remove all variable labels?


From   daniel klein <[email protected]>
To   "[email protected]" <[email protected]>
Subject   Re: st: how can one quickly remove all variable labels?
Date   Thu, 12 Sep 2013 09:40:15 +0200

The suggested loop (and other stuff) is implemented in -labvars- from
-labutil2- package (SSC).

labvars ,r

However, since László allways seems to be concerned with speed, I am
not sure a canned solution is the approach to take here.I would
probably code the loop in Mata, compile and run that code.

Best
Daniel

-- 
Sorry--I misread value labels for variable labels.

Would the following work for you?

foreach var of varlist _all {
label variable `var' ""
}

*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index