run_exponential_model: Run exponential growth model

View source: R/single_population_continuous.R

run_exponential_modelR Documentation

Run exponential growth model

Description

Run exponential growth model

Usage

run_exponential_model(time = 10, init = c(N1 = 1), params = c(r = 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

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

params

intrinsic growth rate r, in a vector with name r

See Also

run_logistic_model() for simulating the dynamics of a population with logistic growth to a carrying capacity, and run_discrete_exponential_model() for a simulating exponential growth in discrete time

Examples

run_exponential_model(time = 0:10, init = c(N1 = 1), params = c(r = .1))
run_exponential_model(time = 10, init = c(N1 = 1), params = c(r = .1))

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