.hier_clust_fit_stats {tidyclust} | R Documentation |
Simple Wrapper around hclust function
Description
This wrapper prepares the data into a distance matrix to send to
stats::hclust
and retains the parameters num_clusters
or h
as an
attribute.
Usage
.hier_clust_fit_stats(
x,
num_clusters = NULL,
cut_height = NULL,
linkage_method = NULL,
dist_fun = philentropy::distance
)
Arguments
x |
matrix or data frame |
num_clusters |
the number of clusters |
cut_height |
the height to cut the dendrogram |
linkage_method |
the agglomeration method to be used. This should be (an
unambiguous abbreviation of) one of |
dist_fun |
A distance function to use |
Value
A dendrogram
[Package tidyclust version 0.2.4 Index]