getOtgrp: Get outgroup

View source: R/a.R

getOtgrpR Documentation

Get outgroup

Description

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

Usage

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


data(mammals)
# orangutan is an outgroup wrt humans and chimps
getOtgrp(mammals, ids = c("Homo_sapiens", "Pan_troglodytes", "Pongo_pygmaeus"))

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