From p.dalgaard@biostat.ku.dk  Thu Jun 25 16:17:11 1998
From: p.dalgaard@biostat.ku.dk (Peter Dalgaard BSA)
Date: 25 Jun 1998 17:17:11 +0200
Subject: rbind(NULL, matrix("a", 5,3))
In-Reply-To: Paul Gilbert's message of Thu, 25 Jun 1998 11:01:22 -0400
References: <98Jun24.125419edt.13441@mailgate.bank-banque-canada.ca>
 <x2u35aiicm.fsf@blueberry.kubism.ku.dk>
 <x2ogvi75gn.fsf@blueberry.kubism.ku.dk>
 <98Jun25.112550edt.13441@mailgate.bank-banque-canada.ca>
Message-ID: <x2soktlde0.fsf@blueberry.kubism.ku.dk>

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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


rbind(NULL, matrix("a", 5,3))
Peter Dalgaard BSA