partuniq               package:mclust               R Documentation

_C_l_a_s_s_i_f_i_e_s _D_a_t_a _A_c_c_o_r_d_i_n_g _t_o _U_n_i_q_u_e _O_b_s_e_r_v_a_t_i_o_n_s

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

     Gives a one-to-one mapping from unique observations to rows of a
     data matrix.

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

     partuniq(x)

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

       x: Matrix of observations.

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

     A vector of length 'nrow(x)' with integer entries. An observation
     'k' is assigned an integer 'i' whenever observation 'i' is the
     first row of 'x' that is identical to observation 'k' (note that
     'i <= k').

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

     data(iris)
     partuniq(as.matrix(iris[,1:4]))

