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 / duplicated < prev    next >
Encoding:
Text File  |  1997-04-23  |  416 b   |  18 lines

  1.     
  2.     _D_e_t_e_r_m_i_n_e _D_u_p_l_i_c_a_t_e _E_l_e_m_e_n_t_s
  3.     
  4.          duplicated(x)
  5.     
  6.     _V_a_l_u_e:
  7.     
  8.          This function determines which elements of a vector are
  9.          duplicates of elements with smaller subscripts, and
  10.          returns a logical vector indicating which elements are
  11.          duplicates.
  12.     
  13.     _E_x_a_m_p_l_e_s:
  14.     
  15.          # extract unique elements
  16.          x[!duplicated(x)]
  17.     
  18.