prune_tree: Prune the dendrogram to have the specified number of clusters

View source: R/sc_clustering_methods.R

prune_treeR Documentation

Prune the dendrogram to have the specified number of clusters

Description

Prune the dendrogram to have the specified number of clusters

Usage

prune_tree(hc, k)

Arguments

hc

a dendrogram saved in hclust object

k

interger, level to cut the dendrogram that has this number of clusters

Value

a list containing

hc

a hclust object of pruned dendrogram

labels

a vector of length n, cluster labels obtained at the specified tree cut


pengminshi/MRtree documentation built on March 6, 2023, 4:20 p.m.