From tlumley at u.washington.edu  Sat Mar 27 00:23:05 2004
From: tlumley at u.washington.edu (Thomas Lumley)
Date: Sat Mar 27 00:23:15 2004
Subject: [Rd] cbind/rbind fail on matrixes containing lists (PR#6702)
In-Reply-To: <Pine.A41.4.58.0403261426110.46652@homer10.u.washington.edu>
References: <20040326220928.E325910438@slim.kubism.ku.dk>
	<Pine.A41.4.58.0403261426110.46652@homer10.u.washington.edu>
Message-ID: <Pine.A41.4.58.0403261521310.46652@homer10.u.washington.edu>

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");
>     }
>
>
> Looks like a fairly simple fix to me.

Not any more it doesn't.  bind.c:AnswerType puts lists together with
pairlists and who knows what else in its `other' class, so a bit more
thought and coding is needed.

It should be fairly straightforward, but it's not a localised change.

	-thomas


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