match.call               package:base               R Documentation

_A_r_g_u_m_e_n_t _M_a_t_c_h_i_n_g

_D_e_s_c_r_i_p_t_i_o_n:

     `match.call' returns a call in which all of the arguments are
     specified by their names.  The most common use is to get the call
     of the current function, with all arguments named.

_U_s_a_g_e:

     match.call(definition = NULL, call = sys.call(sys.parent()),
                expand.dots = TRUE)

_A_r_g_u_m_e_n_t_s:

definition: a function, by default the function from which `match.call'
          is called.

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

expand.dots: logical. Should arguments matching `...' in the call be
          included or left as a `...' argument?

_V_a_l_u_e:

     An object of class `call'.

_S_e_e _A_l_s_o:

     `call', `pmatch', `match.arg', `match.fun'.

_E_x_a_m_p_l_e_s:

     match.call(get, 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 = match.call())
     }
     fun(4 * atan(1), u = pi)

