clustering {clue} | R Documentation |
Determine whether an R object represents a partition or hierarchy of objects.
is.cl_partition(x) is.cl_hard_partition(x) is.cl_soft_partition(x) is.cl_hierarchy(x)
x |
an R object. |
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.
A logical indicating whether the given object represents a clustering of objects of the respective kind.
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)