getCnnctdNds: Get all nodes connected by given tips

View source: R/a.R

getCnnctdNdsR Documentation

Get all nodes connected by given tips

Description

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

Usage

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


tree <- randTree(10)
cnntdnds <- getCnnctdNds(tree, c("t1", "t2"))

ropensci/phylotaR documentation built on July 9, 2023, 3:17 p.m.