Cut dendrogram to obtain cluster assignments
Value
A tibble with columns .obs_id (observation identifier) and
cluster (integer cluster assignment).
Examples
# \donttest{
hc <- tidy_hclust(USArrests, method = "ward.D2")
clusters <- tidy_cutree(hc, k = 3)
# }
