bug on cancor (PR#116)

Peter Dalgaard BSA p.dalgaard@biostat.ku.dk
09 Feb 1999 01:16:37 +0100

kye@ams.sunysb.edu writes:

> When I use the function cancor of mva package, I found that it doesn't
> work when one of the matrix has only one column, or both have only
> one column. The function in Splus 5 with the same name works under those
> situations.

Just for those who wondered: I resent the message to R-bugs, making it
appear on R-devel for the 2nd time but with a PR#. (Resending - in my
mailer at least - leaves the original author as sender, which I think
is desirable. It also came out with a double R-devel signature, but
that probably can't be helped).

This is clearly a bug:

> cancor(1:10,1:10)
Error in qr.qty(qx, qr.qy(qy, diag(1, nr, dy)))[1:dx, , drop = FALSE]
: incorrect number of dimensions

Probably a dimension getting dropped somewhere...
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907
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