Debian Codegraph @

man/as.dendlist.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/dendlist.R
3 \name{as.dendlist}
4 \alias{as.dendlist}
5 \title{Try to coerce something into a dendlist}
6 \usage{
7 as.dendlist(x, ...)
8 }
9 \arguments{
10 \item{x}{a list with several dendrogram/hclust/phylo or dendlist objects
11 and other junk that should be omitted.}
12
13 \item{...}{NOT USED}
14 }
15 \value{
16 A list of class dendlist where each item
17 is a dendrogram
18 }
19 \description{
20 It removes stuff that are not dendgrogram/dendlist
21 and turns what is left into a dendlist
22 }
23 \examples{
24
25 \dontrun{
26
27 dend <- iris[, -5] \%>\%
28 dist() \%>\%
29 hclust() \%>\%
30 as.dendrogram()
31 dend2 <- iris[, -5] \%>\%
32 dist() \%>\%
33 hclust(method = "single") \%>\%
34 as.dendrogram()
35
36 x <- list(dend, 1, dend2)
37 as.dendlist(x)
38 }
39
40 }