R-alpha: is.vector( matrix(2,2,2) ) |--> TRUE

Martin Maechler (maechler@stat.math.ethz.ch)
Fri, 21 Jun 96 08:38:20 +0200

Date: Fri, 21 Jun 96 08:38:20 +0200
Message-Id: <9606210638.AA00157@>
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

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 ?

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