n_of_objects              package:clue              R Documentation

_N_u_m_b_e_r _o_f _O_b_j_e_c_t_s _i_n _a _P_a_r_t_i_t_i_o_n _o_r _H_i_e_r_a_r_c_h_y

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

     Determine the number of objects from which a partition or
     hierarchy was obtained.

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

     n_of_objects(x)

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

       x: an object representing a (hard of soft) partition or a
          hierarchy.

_D_e_t_a_i_l_s:

     This is a generic function.

     The methods provided in package 'clue' handle the partitions and
     hierarchies obtained from clustering functions in the base R
     distribution, as well as packages 'cclust', 'cluster', 'e1071',
     and 'mclust' (and of course, 'clue' itself).

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

     An integer giving the number of objects in the clustering.

_S_e_e _A_l_s_o:

     'is.cl_partition', 'is.cl_hierarchy'

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

     data("Cassini")
     pcl <- kmeans(Cassini$x, 3)
     n_of_objects(pcl)
     hcl <- hclust(dist(USArrests))
     n_of_objects(hcl)

