findSisters: Find the sister nodes/tips of a node/tip

View source: R/ape_utils.R

findSistersR Documentation

Find the sister nodes/tips of a node/tip

Description

An utility function to find the sister nodes/tips of a node/tip

Usage

findSisters(phy, x)

Arguments

phy

a phylo-class object from the ape package

x

the index of the focal node

Value

The indices of the sisters. If the root is supplied, 'NA“ will be returned.

If a non-root node has no sister, an empty numeric vector will be returned.

See Also

[getRoot][getAncestor][getNextDescendants][getConnected]


wu-lab-uva/RasperGade documentation built on June 24, 2022, 2:47 p.m.