On Tue, 14 Oct 2003, Robin Hankin wrote:

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

Yes, thanks for reporting this.

You should get an error message instead: the correct syntax would be
mapply(rep, times=1:4, MoreArgs=list(42))

It looks as though just coercing to a list would probably be sufficient.

        -thomas

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Reply via email to