getOtgrp: Get outgroup

Description Usage Arguments Details See Also Examples

Description

Return the outgroup based on a tree and a vector of IDs.

Usage

1
getOtgrp(tree, ids)

Arguments

tree

TreeMan object

ids

vector of node ids

Details

Returns a id, character. If there are multiple possible outgroups, returns NULL.

See Also

https://github.com/DomBennett/treeman/wiki/get-methods

Examples

1
2
3
4
library(treeman)
data(mammals)
# orangutan is an outgroup wrt humans and chimps
getOtgrp(mammals, ids=c('Homo_sapiens', 'Pan_troglodytes', 'Pongo_pygmaeus'))


Search within the treeman package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.