From Martin Maechler <maechler@stat.math.ethz.ch>  Fri Sep  3 23:43:55 1999
From: Martin Maechler <maechler@stat.math.ethz.ch> (Martin Maechler)
Date: Sat, 4 Sep 1999 00:43:55 +0200
Subject: diag()
In-Reply-To: <x2n1v67302.fsf@blueberry.kubism.ku.dk> (message from Peter
 Dalgaard BSA on 01 Sep 1999 23:09:33 +0200)
References: <Pine.GSO.3.96.990901140456.19209D-100000@laplace> <199909012013.WAA14572@sophie.ethz.ch> <x2n1v67302.fsf@blueberry.kubism.ku.dk>
Message-ID: <199909032243.AAA03262@sophie.ethz.ch>


    PD> Martin Maechler <maechler@stat.math.ethz.ch> writes:
    >> Your proposal has been (slightly improved) and commited for 0.64.1
    PD>                                                                  ^
    PD> Um...

    >> NEWS has
    >> 
    >> o diag(x) now keeps names when appropriate and barfs when x is an
    >> array.

    PD> - unless it's of dimension 2, you mean.
yes..
    PD> But is this really
    PD> desirable for the 1d case? diag(array(1:9)) used to work like
    PD> diag(1:9), but is now an error. E.g. the output of table() can be a
    PD> 1d array.

I know.  
But I think that people may expect something else from diag(<array>).
I don't mind letting the 1D case still go by, but certainly not d >= 3 !

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


diag()
Martin Maechler