From ggrothendieck at gmail.com  Mon Oct 31 20:33:24 2005
From: ggrothendieck at gmail.com (Gabor Grothendieck)
Date: Mon, 31 Oct 2005 14:33:24 -0500
Subject: [Rd] [R] unvectorized option for outer()
In-Reply-To: <43666D4D.7070602@acm.org>
References: <8B08A3A1EA7AAC41BE24C750338754E69FDF14@HERMES.demogr.mpg.de>
	<43629490.9060204@acm.org>
	<971536df0510281643u50929fa6rf097c40948700804@mail.gmail.com>
	<4364A4FC.2030400@durham.ac.uk>
	<Pine.LNX.4.63a.0510301300260.28148@homer23.u.washington.edu>
	<x2y84amyv4.fsf@turmalin.kubism.ku.dk> <43666D4D.7070602@acm.org>
Message-ID: <971536df0510311133g38247e74j6450b68549b0a555@mail.gmail.com>

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)



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