getNdSstr: Get sister id

Description Usage Arguments Details See Also Examples

View source: R/get-nd-methods.R

Description

Returns the id of the sister(s) of node id given.

Usage

1
getNdSstr(tree, id)

Arguments

tree

TreeMan object

id

node id

Details

An error is raised if there is no sister (e.g. for the root). There can be more than one sister if tree is polytomous.

See Also

getNdsSstr, https://github.com/DomBennett/treeman/wiki/get-methods

Examples

1
2
3
library(treeman)
tree <- randTree(10)
getNdSstr(tree, id='t1')

treeman documentation built on July 8, 2020, 7:28 p.m.