From p.dalgaard@biostat.ku.dk  Tue Feb  9 00:16:37 1999
From: p.dalgaard@biostat.ku.dk (Peter Dalgaard BSA)
Date: 09 Feb 1999 01:16:37 +0100
Subject: bug on cancor (PR#116)
In-Reply-To: kye@ams.sunysb.edu's message of Tue, 9 Feb 1999 01:00:58 +0100
References: <199902090000.BAA00511@biostat.ku.dk>
Message-ID: <x21zk0qvmi.fsf@blueberry.kubism.ku.dk>

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


bug on cancor (PR#116)
Peter Dalgaard BSA