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

From: Gabor Grothendieck <ggrothendieck_at_gmail.com>
Date: Mon 31 Oct 2005 - 19:33:24 GMT

On 10/31/05, Tony Plate <tplate@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)



R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Tue Nov 01 06:36:37 2005

This archive was generated by hypermail 2.1.8 : Mon 20 Feb 2006 - 03:21:31 GMT