[Rd] several bugs (PR#918) lists and matrices
Thomas Lumley
tlumley@u.washington.edu
Mon, 30 Apr 2001 15:35:42 -0700 (PDT)
On Mon, 30 Apr 2001, Rich Heiberger wrote:
> [Rd] several bugs (PR#918) lists and matrices
>
> Thank you Thomas for suggesting I review the proceedings paper on data
> by Rob. I liked that paper when I heard it and was happy to reread
> it. I agree with everything he said there. After reading it I went
> back to the Blue Book and have several comments.
>
> In summary, I am arguing for permitting
> a <- matrix(list(1,2,3,4,5,6), 2, 3)
> along with the currently acceptable
> a <- list(1,2,3,4,5,6)
> dim(a) <- c(2, 3)
> and for making the subscripting
> a[,1:2]
> provide the correct answer
> [,1] [,2]
> [1,] 1 3
> [2,] 2 4
> rather than the current incorrect answer
> [,1] [,2]
> [1,] "NULL" "NULL"
> [2,] "NULL" "NULL"
Yes, it probably should work.
I still prefer data frames, but I was clearly wrong about dimensioned
lists.
-thomas
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._