This function just provides a wrapper around the untb function in the untb package.

simUntb(N, y = rep(1, N), m = 0.02, tskip = 0, tend = 5000)

Arguments

N

number of species

y

initial abundances

m

migration probability between 0 and 1

tskip

number of initial time points to be skipped when returning the result (to avoid the transient)

tend

number of time points (i.e. the number of generations)

Value

a matrix with species abundances as rows and time points as columns

See also

ricker for the Ricker model and glv for the generalized Lotka Volterra model

Examples

N=50 y=generateAbundances(N, mode=5) tsplot(simUntb(N,y=y,tend=1000))