Re: rbind problem (PR#338)

About this list Date view Thread view Subject view Author view Other groups

Subject: Re: rbind problem (PR#338)
From: Thomas Lumley (thomas@biostat.washington.edu)
Date: Wed 24 Nov 1999 - 03:41:58 EST


Message-ID: <Pine.GSO.4.10.9911230924150.18031-100000@wompom.biostat.washington.edu>

On Tue, 23 Nov 1999 mcw@ln.nimh.nih.gov wrote:

>
> In the new version 0.90.0, rbind won't take a vector and a matrix from me,
> but works OK if I coerce the vector to a matrix. The following was run on
> a new session (i.e., no prior work), and has been duplicated on 2
> machines: an SGI running Irix 6.5, and an Intel box running Red Hat Linux
> 6.0.

Ok, this is an interesting problem in rbind when there are no names and a
matrix and a vector and deparse_level=1

The reason we segfault is basically
        (gdb) print nrows(R_NilValue)
        $59 = 1076101128
which seems like a bad idea

At lines 1328ff we have a bug where we iterate over the number of rows of
"u", forgetting that after line 1315 u points to the (nonexistent)
dimnames rather than to the matrix.

I'm testing a fix.

        -thomas

Thomas Lumley
Assistant Professor, Biostatistics
University of Washington, Seattle

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b25 : Tue 04 Jan 2000 - 14:16:10 EST