Examples for 'base::match.call'


Argument Matching

Aliases: match.call

Keywords: programming

### ** Examples

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

[Package base version 4.2.3 Index]