File: as.dendlist.Rd

package info (click to toggle)
r-cran-dendextend 1.16.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,936 kB
  • sloc: sh: 13; makefile: 2
file content (40 lines) | stat: -rw-r--r-- 766 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dendlist.R
\name{as.dendlist}
\alias{as.dendlist}
\title{Try to coerce something into a dendlist}
\usage{
as.dendlist(x, ...)
}
\arguments{
\item{x}{a list with several dendrogram/hclust/phylo or dendlist objects
and other junk that should be omitted.}

\item{...}{NOT USED}
}
\value{
A list of class dendlist where each item
is a dendrogram
}
\description{
It removes stuff that are not dendgrogram/dendlist
and turns what is left into a dendlist
}
\examples{

\dontrun{

dend <- iris[, -5] \%>\%
  dist() \%>\%
  hclust() \%>\%
  as.dendrogram()
dend2 <- iris[, -5] \%>\%
  dist() \%>\%
  hclust(method = "single") \%>\%
  as.dendrogram()

x <- list(dend, 1, dend2)
as.dendlist(x)
}

}