Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: RE: surprising behaviour in -lookfor-?


From   Jeph Herrin <[email protected]>
To   [email protected]
Subject   Re: st: RE: surprising behaviour in -lookfor-?
Date   Tue, 27 Jan 2009 09:23:25 -0500


David Elliott wrote:
>
> Note, of course, that -lookfor- can bite you by returning a variable
> name that has the search string in its label.
>
> Options like varonly or labonly would increase -lookfor-'s utility in
> this context.  I think the second quote by Heinlein below is very
> apropos...
>


On reflection, it is only to grab variables with certain
labels that I use -lookfor-; I often get survey data where
there are, eg, 100 variables named q1-q100 and to avoid
renaming the variables I use the labels to distinguish
them. Hence calling -lookfor- to get the subset I want.


cheers,
Jeph



*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index