File: which_leaf.Rd

package info (click to toggle)
r-cran-dendextend 1.19.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,072 kB
  • sloc: sh: 13; makefile: 2
file content (41 lines) | stat: -rw-r--r-- 778 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
41
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/noded_with_condition.R
\name{which_leaf}
\alias{which_leaf}
\title{Which node is a leaf?}
\usage{
which_leaf(dend, ...)
}
\arguments{
\item{dend}{a dendrogram dend}

\item{...}{ignored.}
}
\value{
A logical vector with the length of \link{nnodes},
which gives a TRUE when a node is a leaf.
}
\description{
Gives a vector as the number of nodes (\link{nnodes}),
which gives a TRUE when a node is a leaf.
}
\examples{
\dontrun{

library(dendextend)

# Getting the dend dend
set.seed(23235)
ss <- sample(1:150, 10)
dend <- iris[ss, -5] \%>\%
  dist() \%>\%
  hclust() \%>\%
  as.dendrogram()
dend \%>\% plot()

which_leaf(dend)
}
}
\seealso{
\link{noded_with_condition}, \link{is.leaf}, \link{nnodes}
}