cbind problem (PR#339)

thomas@biostat.washington.edu thomas@biostat.washington.edu
Tue, 23 Nov 1999 19:14:23 +0100 (MET)


Probably related to the rbind problem:

> mm<-matrix(0,2,2)
> nn<-c(1,2)
> cbind(mm,nn)
       nn  
[1,] 0  0 1
[2,] 0  0 2
> dimnames(cbind(mm,nn))
[[1]]
NULL

[[2]]
[1] ""   "nn" ""  

The column names are wrong (though at least no segfault this time)


Thomas Lumley
Assistant Professor, Biostatistics
University of Washington, Seattle




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