Re: [Rd] list/matrix chimera

2007-04-10 Thread Seth Falcon
"hadley wickham" <[EMAIL PROTECTED]> writes: > That's rather a contrived example. In practice, you would create a > list containing the same type of objects. eg: Yes, great. But when you have code that is expecting a matrix argument, you can't know what you are going to get. I suspect there is

Re: [Rd] list/matrix chimera

2007-04-10 Thread hadley wickham
On 4/10/07, Seth Falcon <[EMAIL PROTECTED]> wrote: > "hadley wickham" <[EMAIL PROTECTED]> writes: > > > On 4/10/07, Tony Plate <[EMAIL PROTECTED]> wrote: > >> Aren't you just seeing the effect of drop=TRUE? (at least with the > >> examples you give below -- they all pick out a submatrix with extent

Re: [Rd] list/matrix chimera

2007-04-10 Thread Gabor Grothendieck
On 4/10/07, hadley wickham <[EMAIL PROTECTED]> wrote: > On 4/10/07, Tony Plate <[EMAIL PROTECTED]> wrote: > > Aren't you just seeing the effect of drop=TRUE? (at least with the > > examples you give below -- they all pick out a submatrix with extent one > > on some dimension) > > > > AFAICT, matric

Re: [Rd] list/matrix chimera

2007-04-10 Thread Seth Falcon
"hadley wickham" <[EMAIL PROTECTED]> writes: > On 4/10/07, Tony Plate <[EMAIL PROTECTED]> wrote: >> Aren't you just seeing the effect of drop=TRUE? (at least with the >> examples you give below -- they all pick out a submatrix with extent one >> on some dimension) >> >> AFAICT, matrices with a lis

Re: [Rd] list/matrix chimera

2007-04-10 Thread Tony Plate
hadley wickham wrote: > On 4/10/07, Tony Plate <[EMAIL PROTECTED]> wrote: >> Aren't you just seeing the effect of drop=TRUE? (at least with the >> examples you give below -- they all pick out a submatrix with extent one >> on some dimension) >> >> AFAICT, matrices with a list as the underlying data

Re: [Rd] list/matrix chimera

2007-04-10 Thread hadley wickham
On 4/10/07, Tony Plate <[EMAIL PROTECTED]> wrote: > Aren't you just seeing the effect of drop=TRUE? (at least with the > examples you give below -- they all pick out a submatrix with extent one > on some dimension) > > AFAICT, matrices with a list as the underlying data work properly, e.g.: > > >

Re: [Rd] list/matrix chimera

2007-04-10 Thread Tony Plate
Aren't you just seeing the effect of drop=TRUE? (at least with the examples you give below -- they all pick out a submatrix with extent one on some dimension) AFAICT, matrices with a list as the underlying data work properly, e.g.: > vv <- array(as.list(1:12), 3:4) > vv [,1] [,2] [,3] [