diag() losing dimnames

Paul Gilbert pgilbert@bank-banque-canada.ca
Wed, 9 Sep 1998 11:57:25 -0400


>Names are only well-defined if rows and cols have the same labels.

It probably does not make sense for diag to keep dimnames, but either way, this
is wrong
> diag(x)
  a NA NA
  1   5    9

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