search for: copulaclayton

Displaying 1 result from an estimated 1 matches for "copulaclayton".

2004 Sep 29
2
defining a template for functions via do.call and substitute.
Hi, Given a function fun <- function(a, b) a + b how do I generate the function 'function(x, y) x + y'? Working from the help files and Bill Venables' R-news article (June 2002), I have tried various permutations with substitute without success. e.g. do.call("substitute", list(fun, list(a = as.name("x"), b = as.name("y")))) Regards, John.