append                 package:base                 R Documentation

_V_e_c_t_o_r _M_e_r_g_i_n_g

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

     Add elements to a vector.

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

     append(x, values, after=length(x))

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

       x: the vector to be modified.

  values: to be included in the modified vector.

   after: a subscript, after which the values are to be appended.

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

     A vector containing the values in `x' with the elements of
     `values' appended after the specified element of `x'.

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

     stopifnot(
         append(1:5, 0:1, after=3)
      == append(1:3, c(0:1, 4:5)))

