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)))

