Learn R Programming

TreeSearch (version 0.3.2)

AncestorEdge: Ancestral edge

Description

Ancestral edge

Usage

AncestorEdge(edge, parent, child)

Arguments

edge

Number of an edge

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]

Value

a logical vector identifying whether each edge is the edge that is ancestral to the given edge.