[Rd] v matrix of svd(X) loses dimensions if nrow(X)==1 (PR#963)

wolbers@stat.math.ethz.ch wolbers@stat.math.ethz.ch
Fri, 1 Jun 2001 13:47:18 +0200 (MET DST)

Dear R-developers

I'm not very sure whether this is really a bug and not a feature:

> is.matrix(svd(matrix(1:12,nrow=1))$v)  

In all other cases the $v component is a matrix. Also, the $u component
always seems to be a matrix as indicated in the doc.

My R-version:
> version
platform i686-pc-linux-gnu
arch     i686             
os       linux-gnu        
system   i686, linux-gnu  
major    1                
minor    2.3              
year     2001             
month    04               
day      26               
language R  

Marcel Wolbers

- On S-Plus Version 5.1 Release 1 for Linux 2.0.31 : 1999 
  > is.matrix(svd(matrix(1:12,nrow=1))$v)
  [1] T
- Thanks a lot for the great piece of software you've written

Marcel Wolbers, LEO C14, Seminar for Statistics, ETH Zurich
CH-8092 Zurich, Switzerland; phone: (01) 632 2252	

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