getCnnctdNds: Get all nodes connected by given tips

Description Usage Arguments Details See Also Examples

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

Description

Return a vector of IDs of all nodes that are connected to tip IDs given.

Usage

1
getCnnctdNds(tree, tids)

Arguments

tree

TreeMan object

tids

vector of tip IDs

Details

Returns a vector. This function is the basis for calcPhyDv(), it determines the unique set of nodes connected for a set of tips.

See Also

getUnqNds, calcFrPrp, calcPhyDv

Examples

1
2
3
library(treeman)
tree <- randTree(10)
cnntdnds <- getCnnctdNds(tree, c('t1', 't2'))

Example output



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