Substitute              package:memisc              R Documentation

_S_u_b_s_t_i_t_u_t_i_o_n_s _i_n _L_a_n_g_u_a_g_e _O_b_j_e_c_t_s

_D_e_s_c_r_i_p_t_i_o_n:

     'Substitute' differs from 'substitute' in so far as its first
     argument can be a variable that contains an object of mode
     "language". In that case, substitutions take place inside this
     object.

_U_s_a_g_e:

     Substitute(lang,with)

_A_r_g_u_m_e_n_t_s:

    lang: any object, unevaluated expression, or unevaluated language
          construct, such as a sequence of calls inside braces 

    with: a named list, environment, data frame or data set. 

_D_e_t_a_i_l_s:

     The function body is just 'do.call("substitute",list(lang,with))'.

_V_a_l_u_e:

     An object of storage mode "language" or "symbol".

_E_x_a_m_p_l_e_s:

     lang <- quote(sin(x)+z)
     substitute(lang,list(x=1,z=2))
     Substitute(lang,list(x=1,z=2))

