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: -confirm variable- does not accept varlist (wildcards)
From
Joe Canner <[email protected]>
To
"[email protected]" <[email protected]>
Subject
RE: st: -confirm variable- does not accept varlist (wildcards)
Date
Thu, 5 Sep 2013 16:35:16 +0000
Thanks for the clarification, Nick. I probably should have known that's what you meant.
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Nick Cox
Sent: Thursday, September 05, 2013 11:58 AM
To: [email protected]
Subject: Re: st: -confirm variable- does not accept varlist (wildcards)
Sorry, poor wording. I was relying too much on context. I use wildcard varlists all the time; I've just never wanted to use them within
-confirm- (that I can remember).
Nick
[email protected]
On 5 September 2013 16:29, Joe Canner <[email protected]> wrote:
> Nick,
>
> I'm intrigued by your last sentence in #2. Are you've saying you've never had occasion to use wildcards in varlists, or that there are alternatives? For example, suppose you wanted to do something with all system-generated variables _*, knowing that these might be scattered around the dataset and not contiguous. How would you do that without wildcards?
Nick Cox
> On the question:
>
> 1. It seems that you are right. -confirm- does not support wildcard varlists.
>
> 2. But I've never noticed this before. That just means what it says, but in 20 years of writing a fair number of programs, I've never wanted to try out a wildcard varlist.
On 5 September 2013 15:30, Nick Cox <[email protected]> wrote:
>> . sysuse auto, clear
>> (1978 Automobile Data)
>>
>> . confirm var m*
>> m ambiguous abbreviation
>> r(111);
>>
>> . unab m : m*
>>
>> . confirm var `m'
*
* 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/