rbind(NULL, matrix("a", 5,3))
Peter Dalgaard BSA
p.dalgaard@biostat.ku.dk
25 Jun 1998 17:17:11 +0200
Paul Gilbert <pgilbert@bank-banque-canada.ca> writes:
>
> >Fixed now.
> >[In src/main/bind.c, just after line 913, insert
> > if ( k == 0 )
> > mrows = 0;
>
> I made this change, so the lines around 913 are now
>
> STRING(result)[i + n + (j * rows)] = STRING(u)[(i + j * mrows) % k];
> n += mrows;
> if ( k == 0 )
> mrows = 0;
> }
>
>
> and recompiled, but I still get the same problem:
>
> > rbind(NULL, matrix("a", 5,3))
> Arithmetic Exception - core dumped
>
Aw, darn ...
Someone must have been adding stuff to my version but not yours...
The lines need to go *before* the outer for loop. After line 909,
that is.
--
O__ ---- Peter Dalgaard Blegdamsvej 3
c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk) FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._