sqlsubst              package:surveyNG              R Documentation

_S_u_b_s_t_i_t_u_t_e _v_a_r_i_a_b_l_e_s _i_n_t_o _a _t_e_x_t _s_t_r_i_n_g

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

     When the string contains a name bracketed on both signs by %%,
     substitute the element of 'values' with the same name. If the
     element of 'values' is a vector then concatenate with comma
     separators first.

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

     sqlsubst(strings, values)

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

 strings: Vector of character strings 

  values: A list of vectors of values to substitute

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

     Substituted vector of strings

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

     sqlsubst("get %%vars%% from %%table%%",
          list(vars=c("name","age","sex"), table="survey_data"))

