R/sim2.bd.age.R

sim2.bd.age <-
function(age,numbsim,lambda,mu,K){
	phy <- list()
	for (j in 1:numbsim){
		temp <- sim2.bd(0,age,lambda,mu,K)
		phy <- c(phy, list(temp))
		}
	phy
	}

Try the TreeSim package in your browser

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

TreeSim documentation built on May 2, 2019, 3:23 a.m.