Debian Codegraph @

man/as_hclust_fixed.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/dendextend.R
3 \name{as_hclust_fixed}
4 \alias{as_hclust_fixed}
5 \title{Convert dendrogram Objects to Class hclust}
6 \usage{
7 as_hclust_fixed(x, hc, ...)
8 }
9 \arguments{
10 \item{x}{any object which has an as.hclust method.
11 (mostly used for dendrogram)}
12
13 \item{hc}{an old hclust object from which to re-use
14 the call/method/dist.method values}
15
16 \item{...}{passed to as.hclust}
17 }
18 \value{
19 An hclust object (from a dendrogram) with the original hclust
20 call/method/dist.method values
21 }
22 \description{
23 Convert dendrogram Objects to Class hclust while preserving
24 the call/method/dist.method values of the original hclust object (hc)
25 }
26 \examples{
27 hc <- hclust(dist(USArrests[1:3, ]), "ave")
28 dend <- as.dendrogram(hc)
29
30 as.hclust(dend)
31 as_hclust_fixed(dend, hc)
32 }
33 \seealso{
34 \link{as.hclust}
35 }