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/