Description Usage Arguments Value Note See Also Examples
Simulate a community time series using the generalized Lotka-Volterra model, defined as dx/dt = x(b+Ax), where x is the vector of species abundances, A is the interaction matrix and growth_rates the vector of growth rates.
1 |
N |
species number |
A |
interaction matrix |
b |
growth rates |
x |
initial abundances |
tend |
timepoints |
norm |
return normalised abundances (proportions in each generation) |
a matrix with species abundances as rows and time points as columns, column names give time points
Calls upon the lsoda function from package deSolve to solve the ODE. If function crashes, consider running again with while loop and tryCatch handlings.
deSolve::lsoda
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.