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

View source: R/FindDescendants.R

FindDescendantsR Documentation

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.

Details

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

Value

A vector of the descendant tip numbers.

Author(s)

Graeme T. Lloyd graemetlloyd@gmail.com

Examples


# Find descendants of the root node in the lungfish tree:
FindDescendants(n = 87, tree = Dipnoi$tree)


strap documentation built on May 29, 2024, 2:26 a.m.