R/ancestor.R

Defines functions ancestor

Documented in ancestor

ancestor <- function(tree, i){
which( (tree$merge[,1] == i) | (tree$merge[,2] == i) ) 
}
bcm-uga/apTreeshape documentation built on Sept. 26, 2019, 4:56 p.m.