Learn R Programming

tidylearn (version 0.1.0)

tidy_cutree: Cut Hierarchical Clustering Tree

Description

Cut dendrogram to obtain cluster assignments

Usage

tidy_cutree(hclust_obj, k = NULL, h = NULL)

Value

A tibble with observation IDs and cluster assignments

Arguments

hclust_obj

A tidy_hclust object or hclust object

k

Number of clusters (optional)

h

Height at which to cut (optional)