From tlumley@u.washington.edu  Mon Apr 30 23:35:42 2001
From: tlumley@u.washington.edu (Thomas Lumley)
Date: Mon, 30 Apr 2001 15:35:42 -0700 (PDT)
Subject: [Rd] several bugs (PR#918) lists and matrices
In-Reply-To: <200104302155.f3ULtj41879558@surfer.sbm.temple.edu>
Message-ID: <Pine.A41.4.33.0104301534030.85214-100000@homer11.u.washington.edu>

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


[Rd] several bugs (PR#918) lists and matrices
Thomas Lumley