run_biotic_comp_model: Run a model of competition for a biotic resource

View source: R/biotic_resource_competition.R

run_biotic_comp_modelR Documentation

Run a model of competition for a biotic resource

Description

Run a model of competition for a biotic resource

Usage

run_biotic_comp_model(
  time = seq(0, 10),
  init = c(P1 = 25, P2 = 25, H = 30),
  params = c(r = 0.2, q = 0.0066, a1 = 0.02, T_h1 = 0.1, e1 = 0.4, d1 = 0.1, a2 = 0.02,
    T_h2 = 0.1, e2 = 0.39, d2 = 0.1)
)

Arguments

time

vector of time units over which to run model, starting from 0. time can also be supplied as just the total length of the simulation (i.e. tmax)

init

vector of initial population sizes for both consumer species, with names P1 and P2, and resource species H

params

vector of model parameters: c(r, q, a1, T_h1, e1, d1, a2, T_h2, e2, d2)

See Also

plot_biotic_comp_time() for plots of the population dynamics over time

Examples

run_biotic_comp_model(
time = seq(0,10),
init = c(H = 30, P1 = 25, P2 = 25),
params = c(r = 0.2, q = .0066,
a1 = .02, T_h1 = 0.1, e1 = 0.4, d1 = 0.1,
a2 = .02, T_h2 = 0.1, e2 = 0.39, d2 = 0.1))

gauravsk/ecoevoapps documentation built on June 14, 2025, 12:24 a.m.