R-alpha: is.vector of one-dimensional array

Friedrich Leisch Friedrich.Leisch@ci.tuwien.ac.at
Fri, 5 Dec 1997 15:08:04 +0100


maybe we've already diskussed this before, but Kurt and I can't
remember ...

is.vector() of an one-dimensional array returns FALSE. this is also the
behavior of Splus, but totally counter-intuitive for me ... IMO an
array of dimension 1 is exactly the definition of a vector ...

it also breaks our current plot.factor, which is simply a

	barplot(table(x))

table() returns an one-dimensional array, but barplot only accepts
vector and matrix arguments ...

of course one could check additionally for arrays with correct
dimension ... but ...

any opinions?

fritz

--=20
-------------------------------------------------------------------
                        Friedrich  Leisch                            =20
Institut f=FCr Statistik                      Tel: (+43 1) 58801 4541
Technische Universit=E4t Wien                 Fax: (+43 1)  504 14 98
Wiedner Hauptstra=DFe 8-10/1071      Friedrich.Leisch@ci.tuwien.ac.at
A-1040 Wien, Austria             http://www.ci.tuwien.ac.at/~leisch
     PGP public key http://www.ci.tuwien.ac.at/~leisch/pgp.key
-------------------------------------------------------------------

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