R/id.subtrees.R

id.subtrees <-
function(tree){
	if((length(tree$edge.length)-length(tree$tip.label)+1!=length(tree$tip.label)+1)==FALSE)stop("\nTree not fully bifurcating")
	tree$node.label<-1:length(subtrees2.6(tree))
	return(list(tree=tree,subtree=subtrees2.6(tree)))
	}

Try the iteRates package in your browser

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

iteRates documentation built on May 2, 2019, 9:12 a.m.