match.call2 {rando} | R Documentation |
Alternate Parametrisation of match.call()
Description
Alters the built-in function match.call()
by providing an
additional argument which means that by default a user can specify
how far up the call stack they want to match a call of. See
match.call() for more details.
Usage
match.call2(
n = 0L,
definition = sys.function(sys.parent(n + 1L)),
call = sys.call(sys.parent(n + 1L)),
expand.dots = TRUE,
envir = parent.frame(n + 3L)
)
Arguments
n |
How far up the call-stack they would like to extract. The default,
|
definition |
a function, by default the function from which
|
call |
an unevaluated call to the function specified by
|
expand.dots |
logical. Should arguments matching |
envir |
an environment, from which the |
Value
An object of class call
Examples
f <- function(n) {
g(n)
}
g <- function(n) {
h(n)
}
h <- function(n) {
match.call2(n)
}
f(0)
f(1)
f(2)
[Package rando version 0.2.0 Index]