R/sim.gsa.taxa.R

sim.gsa.taxa <-
function(treearray,n,frac=1,sampling=1,complete=TRUE){
	if (complete==TRUE) {
		phy<-sim2.gsa(treearray,n,sampling)
		} else  {
		phy<-sim2.gsa(treearray, round(n/frac), sampling)
		for (j in 1:length(phy)){
			phy <- reconstructed.taxa(phy,(round(n/frac)-n))
		}
		}
	phy
	}
tanja819/TreeSim documentation built on May 31, 2019, 2:57 a.m.