Learn R Programming

TreeSearch (version 0.2.2)

NonDuplicateRoot: Non-duplicate root

Description

Identify, for each edge, whether it is not a duplicate of the root edge

Usage

NonDuplicateRoot(parent, child, nEdge = length(parent))

Arguments

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]

nEdge

(optional) integer specifying the number of edges of a tree of class phylo, i.e. dim(tree$edge)[1]