Skip to content

Vectorize fails for function with ... arglist

2 messages · Stavros Macrakis, Peter Dalgaard

#
Stavros Macrakis wrote:
I think it's a feature. There's no way of telling which "..." arguments
to vectorize over, and there are arguments that cannot be vectorized, so
vectorizing over all of them by default looks like a bad idea.  The
generic case is that the extra arguments could be things like
na.action=na.omit, which you just want to pass through to the scalar
function.


If you need the full feature set of mapply, use mapply. The
documentation looks like it could be improved, though.

	-p