[Rd] cbind/rbind fail on matrixes containing lists (PR#6702)
Thomas Lumley
tlumley at u.washington.edu
Sat Mar 27 00:23:05 CET 2004
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
More information about the R-devel
mailing list