treeman (version 1.1.4)

getCnnctdNds: 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

Run this code
# NOT RUN {
library(treeman)
tree <- randTree(10)
cnntdnds <- getCnnctdNds(tree, c('t1', 't2'))
# }

Run the code above in your browser using DataCamp Workspace