Defines functions HC

Documented in HC

HC <- function(X, K, distancemetric = "euclidean", method = "ward.D2") {
    clusters <- hclust(dist(X, method = distancemetric), method = method)
    clusterCut <- cutree(clusters, K)

Try the UNCLES package in your browser

Any scripts or data that you put into this service are public.

UNCLES documentation built on May 2, 2019, 11:11 a.m.