I have a question about the evaluation of an optional argument of a function. Let: myfct _ function(a,...) { dots <- match.call(expand.dots = F)$... print(dots) if(!is.null(dots$b)) return(a + dots$
Thanks to all who replied to my question. Here is a summary of the answers: ____________________________ David Lorenz: "(...) replace the first line in your function with: dots <-list(...) That gives
Sorry I forgot one answer! Tim Hesterberg: "Use the optional arguments to eval() (see the help file) to specify where the evaluation should take place; in this case you want evaluation inside the myf