nodeDesc: Return the descendants of nodes

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/nodeDesc.R

Description

This function calculates AIC values, weights and model-weighted average number of entities inferred using GMYC.

Usage

1
nodeDesc(tr, node, tips.only = TRUE)

Arguments

tr

An object of class ‘phylo’.

node

Node for which the descendants are desired.

tips.only

Logical. Should only tip numbers be returned, or should internal nodes be returned also. Default of TRUE, only tip numbers returned.

Details

This function implements equations 3 to 6 in Powell (2011).

Value

A numeric vector giving the descendant tip numbers and (if tips.only = FALSE) node numbers

Author(s)

Samuel Brown <s_d_j_brown@hotmail.com>

See Also

clustGMYC

Examples

1
2
3
4
5
6
7
8
data(anoteropsis)
anoTr <- nj(dist.dna(anoteropsis))

nodeDesc(anoTr, 51)

nodeDesc(anoTr, 51, tips.only = FALSE)

anoTr$tip.label[nodeDesc(anoTr, 51)]

spiderDev documentation built on May 2, 2019, 5:23 p.m.