Argument matching with defaults
This is a version of match.call
which also includes default arguments.
match.call.defaults(definition = sys.function(sys.parent()), call = sys.call(sys.parent()), expand.dots = TRUE, envir = parent.frame(2L))
definition |
a function, by default the function from which match.call is called. See details. |
call |
an unevaluated call to the function specified by definition, as generated by call. |
expand.dots |
ogical. Should arguments matching |
envir |
an environment, from which the |
An object of class call.
Neal Fultz
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')
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.