rbind invisible return value (PR#343)
Peter Dalgaard BSA
p.dalgaard@biostat.ku.dk
25 Nov 1999 11:59:27 +0100
thomas@biostat.washington.edu writes:
> An assignment in an argument sometimes makes rbind return invisibly
>
> > rbind(diag(3),a<-1:3)
> > print(rbind(diag(3),a<-1:3))
> [,1] [,2] [,3]
> [1,] 1 0 0
> [2,] 0 1 0
> [3,] 0 0 1
> [4,] 1 2 3
Ditto with cbind(). Not new, 0.65.1 does likewise.
--
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._