Learn R Programming

ggphylo (version 0.1)

tree.child.nodes: Return a list (not a vector!) of the node indices of the given node's direct children. Returns (-1, -1) if the given node is a leaf.

Description

Return a list (not a vector!) of the node indices of the given node's direct children. Returns (-1, -1) if the given node is a leaf.

Usage

tree.child.nodes(phylo, node)

Arguments

phylo,
input phylo object
node,
integer index of the node to test

Value

list, a list containing the integer indices of the nodes directly beneath the given node.