powered by
The returned tibble contains the id of the cluster benchmark, the cluster radius and diameter, and group number for each cluster.
getBenchmarkInformation(dmat, groups)
data frame with cluster information
distance matrix
groups resulting from clustering
dists <- getDists(Bikes$space1,"euclidean") fit <- stats::hclust(dists, "ward.D2") groups <- stats::cutree(fit, k = 4) getBenchmarkInformation(as.matrix(dists), groups)
Run the code above in your browser using DataLab