match_call | R Documentation |
This function matches the arguments in an unevaluated call to the parameters in a function definition.
match_call(node, definition, expand_dots, envir)
## S3 method for class 'call'
match_call(node, definition = find_function(node, envir),
expand_dots = TRUE, envir = parent.frame())
## S3 method for class 'Call'
match_call(node, definition = find_function(node, envir),
expand_dots = TRUE, envir = parent.frame())
node |
An unevaluated call with arguments to match. |
definition |
Optional definition for the called function. |
expand_dots |
(logical) Should arguments matching |
envir |
(environment) An environment where |
This function is a wrapper for match.call()
that adds support for:
Primitive functions
Anonymous functions
Automatic definition lookup based on the call
ASTNode
objects as the call or the defintion
An object of the same class as node
, with full parameter names for
all arguments.
match.call()
, find_function()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.