powered by
This is a version of match.call which also includes default arguments.
match.call
match.call.defaults(definition = sys.function(sys.parent()), call = sys.call(sys.parent()), expand.dots = TRUE, envir = parent.frame(2L))
a function, by default the function from which match.call is called. See details.
an unevaluated call to the function specified by definition, as generated by call.
ogical. Should arguments matching ... in the call be included or left as a ... argument?
...
an environment, from which the ... in call are retrieved, if any.
An object of class call.
http://stackoverflow.com/questions/14397364/match-call-with-default-arguments/
# NOT RUN { foo <- function(x=NULL,y=NULL,z=4, dots=TRUE, ...) { match.call.defaults(expand.dots=dots) } foo(4,nugan='hand') foo(dots=FALSE,who='ami') # }
Run the code above in your browser using DataLab