Quickly identify edges that are "descended" from edges in a tree.
DescendantEdges(parent, child, edge = NULL, nEdge = length(parent))AllDescendantEdges(parent, child, nEdge = length(parent))
DescendantEdges() returns a logical vector stating whether each
edge in turn is a descendant of the specified edge (or the edge itself).
AllDescendantEdges() is deprecated; use DescendantEdges()
instead. It returns a matrix of class logical, with row N specifying whether each edge is a descendant of edge N (or the edge itself).
Integer vector corresponding to the first column of the edge
matrix of a tree of class phylo, i.e. tree[["edge"]][, 1]
Integer vector corresponding to the second column of the edge
matrix of a tree of class phylo, i.e. tree[["edge"]][, 2].
Integer specifying the number of the edge whose child edges are
required (see edgelabels()).
number of edges (calculated from length(parent) if not
supplied).
Other tree navigation:
AncestorEdge(),
CladeSizes(),
EdgeAncestry(),
EdgeDistances(),
ListAncestors(),
MRCA(),
NDescendants(),
NodeDepth(),
NodeOrder(),
RootNode()