rbind problem (PR#338)
Thomas Lumley
thomas@biostat.washington.edu
Tue, 23 Nov 1999 09:41:58 -0800 (PST)
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._