clustering               package:clue               R Documentation

_P_a_r_t_i_t_i_o_n_s _a_n_d _H_i_e_r_a_r_c_h_i_e_s

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

     Determine whether an R object represents a partition or hierarchy
     of objects.

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

     is.cl_partition(x)
     is.cl_hard_partition(x)
     is.cl_soft_partition(x)
     is.cl_hierarchy(x)

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

       x: an R object.

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

     Apart from 'is.cl_soft_partition', these functions are generic
     functions.

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

     'is.cl_soft_partition' gives true iff 'is.cl_partition' is true
     and 'is.cl_hard_partition' is false.

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

     A logical indicating whether the given object represents a
     clustering of objects of the respective kind.

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

     data("Cassini")
     pcl <- kmeans(Cassini$x, 3)
     is.cl_partition(pcl)
     is.cl_hard_partition(pcl)
     is.cl_soft_partition(pcl)

     hcl <- hclust(dist(USArrests))
     is.cl_partition(hcl)
     is.cl_hierarchy(hcl)

