powered by
Convert dendrogram Objects to Class hclust while preserving the call/method/dist.method values of the original hclust object (hc)
as_hclust_fixed(x, hc, ...)
any object which has an as.hclust method. (mostly used for dendrogram)
an old hclust object from which to re-use the call/method/dist.method values
passed to as.hclust
An hclust object (from a dendrogram) with the original hclust call/method/dist.method values
as.hclust
# NOT RUN { hc <- hclust(dist(USArrests[1:3, ]), "ave") dend <- as.dendrogram(hc) as.hclust(dend) as_hclust_fixed(dend, hc) # }
Run the code above in your browser using DataLab