R/tree.na.Count.R

tree.na.Count <-
function(tree,thr=6,srt="drop",min.val=0.01,mod.id=c(1,0,0,0)){
	N=length(tree$edge.l)
	subs=subtrees2.6(tree)
	X <- 0
	for(i in 1:(N/2)){
	sZ<-length(subs[[i]]$edge.length)
		if(sZ<=thr){X <- X+1}
		if(sZ>=(N-thr)){X <- X+1}
		}
	X
	}

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.