Skip to content
Prev 238264 / 398500 Next

Problem applying "outer" to a list of functions

Hi,
On Sat, Oct 16, 2010 at 9:52 AM, jschamel <jtschamel at alaska.edu> wrote:
Because you only call the first element of the list, fl[[1]], that is
the foo function.  You might play around with a simple example in
outer not involving functions to get a better feel for what it does.

 ?Here's my dummy code with
For your overall goal, here is how I would call a bunch of functions
with the same arguments:

lapply(list(foo, bar), do.call, list(1:2))

Cheers