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 to run a loop on labels


From   Nick Cox <[email protected]>
To   "[email protected]" <[email protected]>
Subject   Re: st: How to run a loop on labels
Date   Wed, 3 Jul 2013 17:03:50 +0100

I had completely forgotten about that (written in 2001).

Thanks to Daniel.

Nick
[email protected]


On 3 July 2013 16:58, daniel klein <[email protected]> wrote:
> Also see Nick's (Cox, that is) -labvarch- part of his -labutil-
> package from the SSC archives.
>
> Best
> Daniel
>
> --
> I have a list of variables' names and corresponding labels:
>
> x1 label: Total duration in 1
> [...]
> z2 label: Total costs in 2
>
> 1 corresponds to Administrative Office, and 2 to Economic Department.
>
> How can I substitute the 1 with Administrative Office in all the
> labels of variables that end with 1? [...]
*
*   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