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   László Sándor <[email protected]>
To   [email protected]
Subject   Re: st: how can one quickly remove all variable labels?
Date   Thu, 12 Sep 2013 11:22:09 -0400

Thanks!

I am concerned about speed, but I am with Phil here: this loop should
touch very little of memory, it should be lightning fast. I had no
problems with it, thanks.

Probably this is the reason why nothing is built in for it.

Laszlo

On Thu, Sep 12, 2013 at 7:56 AM, Phil Schumm <[email protected]> wrote:
> On Sep 12, 2013, at 2:40 AM, daniel klein <[email protected]> wrote:
>> 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.
>
>
> I don't see how speed is an issue here, since even if you're working with very wide files, we're still talking only thousands (or perhaps tens of thousands) of variables as compared to millions (or more) observations.  And this is a loop that only needs to be run once.  Still, if you're willing to toss the value labels at the same time, you can use
>
>     label language tmplang, new
>     label language default, delete
>     label language default, rename
>
>
> -- Phil
>
>
> *
> *   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index