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
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
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
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
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:
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:
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
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);