From plummer@iarc.fr  Fri Nov 28 12:26:07 1997
From: plummer@iarc.fr (Martyn Plummer)
Date: Fri, 28 Nov 1997 13:26:07 +0100 (MET)
Subject: R-alpha: Problems with dimnames and names
Message-ID: <XFMail.971128133158.plummer@iarc.fr>

On 28-Nov-97 p.dalgaard@biostat.ku.dk wrote:
>Martyn Plummer <plummer@iarc.fr> writes:
>
>> 3) I have no idea what's going on here.
>> 
>> > c(r=1,s=2)
>> s
>> 2
>> > c(u=100,b=4)
>> b
>> 4
>>
>"r" is probably matching "recursive", but what about "u"? ("unlist"??)

Aha! It's matching use.names (one of the arguments of unlist())
> c(u=0,x=1,y=2)
[1] 1 2
> c(u=10,x=1,y=2)
x y
1 2

Isn't it a bit dangerous to allow partial matching of arguments
(especially undocumented arguments)? NB It doesn't consistently
match the arguments either:

> c(r=1,u=2)
u
2
> c(u=2,r=1)
r
1

Martyn
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


R-alpha: Problems with dimnames and names
Martyn Plummer