getPrnt: Get parent

Description Usage Arguments Details See Also Examples

View source: R/get-spcl-methods.R

Description

Return parental (most recent common ancestor) node id for ids.

Usage

1
getPrnt(tree, ids)

Arguments

tree

TreeMan object

ids

vector of node ids

Details

Returns a character.

See Also

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

Examples

1
2
3
4
library(treeman)
data(mammals)
# choosing ids from the two main branches of apes allows to find the parent for all apes
ape_id <- getPrnt(mammals, ids=c('Homo_sapiens', 'Hylobates_concolor'))

treeman documentation built on July 8, 2020, 7:28 p.m.