[R] mapply() gives seg fault

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Tue Oct 14 18:23:22 CEST 2003


Robin Hankin <rksh at soc.soton.ac.uk> writes:

> Hello everybody.
> 
> I've been experimenting with mapply().  Does anyone else have problems with:
> 
> R> mapply(rep,times=1:4, MoreArgs=42)
> 
> (I get a seg fault).

So do I. It's a bug, but I suppose list(42) is what  you need.

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907




More information about the R-help mailing list