R/ancestor.R

Defines functions ancestor

Documented in ancestor

ancestor <- function(tree, i){
which( (tree$merge[,1] == i) | (tree$merge[,2] == i) ) 
}

Try the apTreeshape package in your browser

Any scripts or data that you put into this service are public.

apTreeshape documentation built on Jan. 8, 2021, 2:07 a.m.