Learn R Programming

strap (version 1.6-0)

FindDescendants: Finds the tip numbers descending from a specific node in a phylo object

Description

Finds the tip numbers descending from a specific node in a phylo object.

Usage

FindDescendants(n, tree)

Arguments

n

The node number.

tree

Tree as a phylo object.

Value

A vector of the descendant tip numbers.

Details

A simple way to get the tips descending from a given node in a phylogenetic tree.

Examples

Run this code
# NOT RUN {
# Find descendants of the root node in the lungfish tree:
FindDescendants(n = 87, tree = Dipnoi$tree)

# }

Run the code above in your browser using DataLab