drip.node.labels: 'drip.node.labels' 'Drip' node.labels through a phylogeny

Description Usage Arguments Details Value Note Author(s)

View source: R/phylo.manip.R

Description

drip.node.labels 'Drip' node.labels through a phylogeny

Usage

1
drip.node.labels(tree, clade.mat = NULL)

Arguments

tree

ape::phylo object; must have node.label slot (otherwise there're no node labels to use!)

clade.mat

If not NULL (the default), the clade.mat slot of a caper::clade.matrix function call on the phylogeny to be labelled. You may already have this lying around, if so it speeds the function somewhat.

Details

Returns a vector that names all nodes according to the label of their ancestral nodes. So if the Fagaceae node is labelled, all nodes within that clade will be labelled Fagaceae also. A new node label, such a Quercus, will be used instead if one is encountered.

Value

Vector of labels; could be put straight into an ape::phylo object in the node.label slot.

Note

Convenient if you do a lot of OU modelling...

Author(s)

Will Pearse


willpearse/willeerd documentation built on May 4, 2019, 6:27 a.m.