Description Usage Arguments Value Examples
View source: R/lotka_volterra.R
Lotka-Volterra Predator-Prey Model
1 | lotka_volterra(time, init_n, init_p, r, c, a, m)
|
time |
Vector of time points at which to evaluate system |
init_n |
Initial abundance of prey population |
init_p |
Initial abundance of predator population |
r |
Prey per-capita growth rate |
c |
Predator consumption efficiency (of turning prey into offspring) |
a |
Predator search/attack efficiency |
m |
Predator mortality rate |
Tidy data frame with three columns:
Time | Same values and units as argument time |
|
Population | One of 'Prey' or 'Predator' | |
Abundance | Abundance of given population at given time | |
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.