R: Get sister id

getNdSstr {treeman} | R Documentation

## Get sister id

### Description

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

### Usage

    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

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

[Package treeman version 1.1.4 Index]