maDotsMatch          package:marrayClasses          R Documentation

_R_e_p_l_a_c_e _d_e_f_a_u_l_t _a_r_g_u_m_e_n_t_s _o_f _a _f_u_n_c_t_i_o_n _b_y _u_s_e_r _s_u_p_p_l_i_e_d _v_a_l_u_e_s

_D_e_s_c_r_i_p_t_i_o_n:

     This function may be used to replace default arguements for any
     functions to user supplied parameters.

_U_s_a_g_e:

     maDotsMatch(dots, defaults)

_A_r_g_u_m_e_n_t_s:

    dots: List of user supplied argements, e.g. from 'list(...)'.

defaults: List of  formal arguments of a function, e.g. from the
          function 'formals'.

_V_a_l_u_e:

    args: List of argument of a function.

_A_u_t_h_o_r(_s):

     Jean Yee Hwa Yang

_S_e_e _A_l_s_o:

     'maDefaultPar', 'maDotsDefaults'

_E_x_a_m_p_l_e_s:

     dots<-list(x=1:10, y=11:20)
     argsfun <- maDotsMatch(dots, formals(args(plot)))
     do.call("plot", argsfun)

