From pgilbert@bank-banque-canada.ca  Fri Jul 10 18:44:00 1998
From: pgilbert@bank-banque-canada.ca (Paul Gilbert)
Date: Fri, 10 Jul 1998 13:44:00 -0400
Subject: partial matches for attribute name
References: <x2hg0pzxwi.fsf@blueberry.kubism.ku.dk>
 <98Jul10.100706edt.13457@mailgate.bank-banque-canada.ca> <13734.17481.13866.883711@pc87.maho.magnaeu.com>
Message-ID: <98Jul10.141623edt.13446@mailgate.bank-banque-canada.ca>

>>> o   attr() partial matches for attribute name.

>> If this does what I think it does then I don't think it is a very good
>> idea, and is also not consistent with S:

>Which is clearly a bug.  The Splus documentation says
...

I'd be prepared to call this one an incorrectly documented feature. So in the
name of S compatiblity should one do as it says or do as it does? There is
clearly not very much code around which requires partial matching, since it
hasn't worked, but there may be things that break if it does work. Also, the
documention is not very clear about whether attr(x,"di") will return dim or
dimnames if both exist. As near as I can tell the documentation is not even
clear about whether attr(x,"dim") will return dim or dimnames, although the sane
choice seems to be made by [[.

Paul Gilbert



-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


partial matches for attribute name
Paul Gilbert