as_hclust_fixed: Convert dendrogram Objects to Class hclust

View source: R/dendextend.R

as_hclust_fixedR Documentation

Convert dendrogram Objects to Class hclust

Description

Convert dendrogram Objects to Class hclust while preserving the call/method/dist.method values of the original hclust object (hc)

Usage

as_hclust_fixed(x, hc, ...)

Arguments

x

any object which has an as.hclust method. (mostly used for dendrogram)

hc

an old hclust object from which to re-use the call/method/dist.method values

...

passed to as.hclust

Value

An hclust object (from a dendrogram) with the original hclust call/method/dist.method values

See Also

as.hclust

Examples

hc <- hclust(dist(USArrests[1:3, ]), "ave")
dend <- as.dendrogram(hc)

as.hclust(dend)
as_hclust_fixed(dend, hc)

dendextend documentation built on Oct. 13, 2024, 1:06 a.m.