R: Get pre-nodes to root

getNdPrids {treeman} | R Documentation

## Get pre-nodes to root

### Description

Return node ids for connecting `id` to root.

### Usage

    getNdPrids(tree, id)

### Arguments

`tree` | `TreeMan` object
`id` | node id

### Details

Returns a vector. IDs are returned order from node ID to root.

### See Also

`getNdsPrids`, `getNdPtids`, `getNdsPtids`, https://github.com/DomBennett/treeman/wiki/get-methods

### Examples

    library(treeman)
    tree <- randTree(10)
    # get all nodes to root
    getNdPrids(tree, id='t1')

[Package treeman version 1.1.4 Index]