R-alpha: bug: rbind(.) drops names for character; cbind(.) is ok.
Martin Maechler
Martin Maechler <maechler@stat.math.ethz.ch>
Tue, 16 Sep 1997 16:09:40 +0200
R version (>) 0.50-a4:
##-- This is fine :
> rbind(graph=c(1:3), plot=c(2:4), my.glm=c(3:5))
[,1] [,2] [,3]
graph 1 2 3
plot 2 3 4
my.glm 3 4 5
##-- This is the bug:
> rbind(graph=c("A","B"), plot=c(2:3), my.glm=c(3:4))
[,1] [,2]
[1,] "A" "B"
[2,] "2" "3"
[3,] "3" "4"
##-- cbind(.) is ok:
> cbind(graph=c("A","B"), plot=c(2:3), my.glm=c(3:4))
graph plot my.glm
[1,] "A" "2" "3"
[2,] "B" "3" "4"
>
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
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
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-