RE: [Rd] cbind/rbind fail on matrixes containing lists (PR#6702)

2004-03-31 Thread Warnes, Gregory R
Hello Brian, -Original Message- From: Prof Brian Ripley [mailto:[EMAIL PROTECTED] There are no `matrixes containing lists'. There are lists which are also matrices, but their contents are the vector elements (unless you meant that it was a list of lists, which seems not be

RE: [Rd] cbind/rbind fail on matrixes containing lists (PR#6702)

2004-03-31 Thread Prof Brian Ripley
Since 1.9.0 got delayed, we have written the code for this case (today). But only vector lists, and not some of the language objects (pairlists) you can make matrices of. The example you give does not work. On Wed, 31 Mar 2004, Warnes, Gregory R wrote: Hello Brian, -Original

RE: [Rd] cbind/rbind fail on matrixes containing lists (PR#6702)

2004-03-31 Thread Prof Brian Ripley
On Wed, 31 Mar 2004, Prof Brian Ripley wrote: Since 1.9.0 got delayed, we have written the code for this case (today). But only vector lists, and not some of the language objects (pairlists) you can make matrices of. The example you give does not work. now

Re: [Rd] cbind/rbind fail on matrixes containing lists (PR#6702)

2004-03-27 Thread Prof Brian Ripley
There are no `matrixes containing lists'. There are lists which are also matrices, but their contents are the vector elements (unless you meant that it was a list of lists, which seems not be the case in your example). In the absence of a reproducible example, it is not clear to me exactly

Re: [Rd] cbind/rbind fail on matrixes containing lists (PR#6702)

2004-03-27 Thread Prof Brian Ripley
On Fri, 26 Mar 2004, Thomas Lumley wrote: On Fri, 26 Mar 2004, Thomas Lumley wrote: Yep, bind.c:do_bind has switch(mode) { case NILSXP: case LGLSXP: case INTSXP: case REALSXP: case CPLXSXP: case STRSXP: break; default:

Re: [Rd] cbind/rbind fail on matrixes containing lists (PR#6702)

2004-03-27 Thread ripley
On Fri, 26 Mar 2004, Thomas Lumley wrote: On Fri, 26 Mar 2004, Thomas Lumley wrote: Yep, bind.c:do_bind has switch(mode) { case NILSXP: case LGLSXP: case INTSXP: case REALSXP: case CPLXSXP: case STRSXP: break; default:

[Rd] cbind/rbind fail on matrixes containing lists (PR#6702)

2004-03-26 Thread gregory_r_warnes
Today's R 1.9.0 beta: m1 [,1] [,2] [,3] [,4] [1,] NA NA NA NA [2,] NA NA NA NA [3,] NA NA NA NA [4,] NA NA NA NA class(m1[1,1]) [1] list cbind(m1,m1) Error in cbind(...) : cannot create a matrix from these types rbind(m1,m1) Error in rbind(...) : cannot

Re: [Rd] cbind/rbind fail on matrixes containing lists (PR#6702)

2004-03-26 Thread Thomas Lumley
On Fri, 26 Mar 2004, Thomas Lumley wrote: Yep, bind.c:do_bind has switch(mode) { case NILSXP: case LGLSXP: case INTSXP: case REALSXP: case CPLXSXP: case STRSXP: break; default: errorcall(call, cannot create a matrix from these types);