[Rd] [R] unvectorized option for outer()

Gabor Grothendieck ggrothendieck at gmail.com
Mon Oct 31 20:33:24 CET 2005


On 10/31/05, Tony Plate <tplate at acm.org> wrote:
>
> I have to confess I don't really understand how environments work with
> functions, so I don't know if this Vectorize() function will work in
> general.  What is the appropriate environment for returned value of
> Vectorize()?  Is this approach to creating a Vectorize() function on the

I think the environments of the input and output functions should be
the same which can be accomplished via:

environment(FUNV) <- environment(FUN)



More information about the R-devel mailing list