{base}R Documentation

Argument Matching

Description returns a call in which all of the specified arguments are specified by their full names.

Usage = sys.function(sys.parent()),
           call =,
           expand.dots = TRUE,
           envir = parent.frame(2L))



a function, by default the function from which is called. See details.


an unevaluated call to the function specified by definition, as generated by call.


logical. Should arguments matching ... in the call be included or left as a ... argument?


an environment, from which the ... in call are retrieved, if any.


‘function’ on this help page means an interpreted function (also known as a ‘closure’): does not support primitive functions (where argument matching is normally positional). is most commonly used in two circumstances:

Calling outside a function without specifying definition is an error.


An object of class call.


Chambers, J. M. (1998) Programming with Data. A Guide to the S Language. Springer.

See Also is similar, but does not expand the argument names; call, pmatch, match.arg,

Examples, call("get", "abc", i = FALSE, p = 3))
## -> get(x = "abc", pos = 3, inherits = FALSE)
fun <- function(x, lower = 0, upper = 1) {
  structure((x - lower) / (upper - lower), CALL =
fun(4 * atan(1), u = pi)

[Package base version 3.3.2 Index]