Learn R Programming

TreeSearch (version 0.3.2)

EdgeAncestry: EdgeAncestry

Description

Descendant Edges

Usage

EdgeAncestry(edge, parent, child, stopAt = (parent == min(parent)))

Arguments

edge

number of the edge whose child edges are required

parent

the first column of the edge matrix of a tree of class phylo, i.e. tree$edge[, 1]

child

the second column of the edge matrix of a tree of class phylo, i.e. tree$edge[, 2]

stopAt

number of the edge at which the search should terminate; defaults to the root edges

Value

a logical vector stating whether each edge in turn is a descendant of the specified edge

Details

Quickly identifies edges that are 'ancestral' to a particular edge in a tree