home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / UNIX / Educational / R-0.49-MI / R-0.49-I / help / base / append < prev    next >
Encoding:
Text File  |  1997-04-23  |  560 b   |  25 lines

  1.     
  2.     _V_e_c_t_o_r _M_e_r_g_i_n_g
  3.     
  4.          append(x, values, after=length(x))
  5.     
  6.     _A_r_g_u_m_e_n_t_s:
  7.     
  8.                x : the vector to be modified.
  9.     
  10.           values : to be included in the modified vector.
  11.     
  12.            after : a subscript, after which the values are to be
  13.                    appended.
  14.     
  15.     _V_a_l_u_e:
  16.     
  17.          A vector containing the values in x with the elements
  18.          of values appended after the specified element of x.
  19.     
  20.     _E_x_a_m_p_l_e_s:
  21.     
  22.          all(append(1:5, 0:1, after=3) ==
  23.              append(1:3, c(0:1, 4:5)))
  24.     
  25.