Skip to contents

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

Usage

getPrnt(tree, ids)

Arguments

tree

TreeMan object

ids

vector of node ids

Details

Returns a character.

Examples


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"))