basal_node: Identify nodes in a phylogeny

View source: R/Node_based_analysis.R

basal_nodeR Documentation

Identify nodes in a phylogeny

Description

Returns the internal (ape) node numbers corresponding to certain nodes in the phylogeny

Usage

basal_node(tree)
nodenumbers(tree)
nodes(tree, all = FALSE)
Descendants(node, tree)
Parent(node, tree)
Sister(node, tree)
MostRecentAncestor(tips, tree)

Arguments

tree

An object of type phylo, or alternatively an object of type nodiv_data

node

The internal node number of a focal node in the phylogeny

all

Give all node labels in order of occurrence. If FALSE, only non-empty node labels will be shown in alphabetical order

tips

The species to find the most recent common ancestor for

Details

Parent gives the code immediately basal to the focal node, Descendants gives the nodes descending from the focal node, and Sister gives the sister node(s). MostRecentAncestor gives the most recent common node for the given tips.

Value

The internal (ape) node number of the node

Author(s)

Michael Krabbe Borregaard


nodiv documentation built on Aug. 21, 2023, 9:10 a.m.