lotka_volterra: Lotka-Volterra Predator-Prey Model

Description Usage Arguments Value Examples

View source: R/lotka_volterra.R

Description

Lotka-Volterra Predator-Prey Model

Usage

1
lotka_volterra(time, init_n, init_p, r, c, a, m)

Arguments

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

Value

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

Examples

1
2
3
t <- seq(0, 50, 0.1)
lotka_volterra(time = t, init_n = 50, init_p = 30, r = 0.8, c = 0.04, a = 0.2,
               m = 0.3)

patrickbarks/popmods documentation built on May 21, 2019, 2:07 p.m.