lotka_volterra_comp: Lotka-Volterra 2-Species Competition Model

Description Usage Arguments Value Examples

View source: R/lotka_volterra_comp.R

Description

Lotka-Volterra 2-Species Competition Model

Usage

1
lotka_volterra_comp(time, init_n1, init_n2, r1, r2, k1, k2, a1, a2)

Arguments

time

Vector of time points at which to evaluate system

init_n1

Initial abundance of Population 1

init_n2

Initial abundance of Population 2

r1

Inherent per-capita growth rate of Population 1

r2

Inherent per-capita growth rate of Population 2

k1

Carrying capacity of Population 1

k2

Carrying capacity of Population 2

a1

Effect of Population 1 on growth of Population 2

a2

Effect of Population 2 on growth of Population 1

Value

Tidy data frame with three columns:

Time Same values and units as argument time
Population One of 'Pop. 1' or 'Pop. 2'
Abundance Abundance of given population at given time

Examples

1
2
3
t <- seq(0, 50, 0.1)
lotka_volterra_comp(time = t, init_n1 = 10, init_n2 = 10, r1 = 0.5, r2 = 0.1,
                    k1 = 100, k2 = 100, a1 = -0.001, a2 = -0.4)

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