Skip to content
Prev 324818 / 398503 Next

Trying to build up functions with its names by means of lapply

Thanks, Bill. Clearly something I missed. I appreciate your filling in
that crack.

Another equivalent way to do it?

f2 <- function(c,nm = "gamma",...)
{
  probFunc <- paste0(c,nm)
  more <- list(...)
  function(x)do.call(probFunc,c(x,more))
}

This avoids the explicit use of get() and force(), I believe, but are
there problems here I'm missing?


-- Cheers,
Bert
On Wed, Jun 5, 2013 at 1:46 PM, William Dunlap <wdunlap at tibco.com> wrote: