R-alpha: is.vector( matrix(2,2,2) ) |--> TRUE [resend-- mailer errors]

Martin Maechler (maechler@stat.math.ethz.ch)
Fri, 21 Jun 96 10:36:11 +0200


Date: Fri, 21 Jun 96 10:36:11 +0200
Message-Id: <9606210836.AA00552@>
From: Martin Maechler <maechler@stat.math.ethz.ch>
To: R-testers mailing list <R-testers@stat.math.ethz.ch>
Subject: R-alpha: is.vector( matrix(2,2,2) )  |--> TRUE   [resend-- mailer errors]

[[a resend because of mailer errors]]

This is an old one.
R gives TRUE  where  S returns FALSE.

Do you consider it a bug to be fixed, or are you
making a point that any array is a vector  with  'dim' attribute ?

----------------------------------------

Since this is the topic:

I'd propose to consistently use the 'matrix' class.
This is something current S-plus does quite inconsistently
 (for historical / compatibility reasons ..),
in future versions of S supposedly everything will have a class,
so why not start at a place where there's really a win ?

Martin
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-testers mailing list -- To (un)subscribe, send
subscribe	or	unsubscribe
(in the "body", not the subject !)  To: r-testers-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-