run_logistic_model: Run logistic growth model

View source: R/single_population_continuous.R

run_logistic_modelR Documentation

Run logistic growth model

Description

Run logistic growth model

Usage

run_logistic_model(
  time = 0:10,
  init = c(N1 = 1),
  params = c(r = 0.15, K = 1000)
)

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

initial population size of population, in a vector with name N1

params

vector of intrinsic growth rate, carrying capacity and, if simulating a lagged-logistic model, tau in a vector with names r, K, and tau (if applicable)

See Also

run_exponential_model() for simulating the dynamics of a population with no carrying capacity, and run_discrete_logistic_model(), run_beverton_holt_model(), and run_ricker_model() for discrete-time models of population growth with population regulation

Examples

run_logistic_model(time = 0:10, init = c(N1 = 1), params = c(r = .15, K = 1000))
run_logistic_model(time = 10, init = c(N1 = 1), params = c(r = .15, K = 1000))
run_logistic_model(time = 0:10, init = c(N1 = 1), params = c(r = .15, K = 1000, tau = 2.1))

gauravsk/ecoevoapps documentation built on July 9, 2024, 9:37 p.m.