ricker_reproduction_model(
abundance = 10,
reproduction_rate = 0.25,
carrying_capacity = 100
)
ricker_reproduction_model(
abundance = matrix(10, 5, 5),
reproduction_rate = 0.25,
carrying_capacity = 100
)
ricker_reproduction_model(
abundance = matrix(10, 5, 5),
reproduction_rate = matrix(seq(-0.5, 0.5, length.out = 25), 5, 5),
carrying_capacity = matrix(100, 5, 5)
)
ricker_reproduction_model(
abundance = matrix(10, 5, 5),
reproduction_rate = matrix(seq(0, -2, length.out = 25), 5, 5),
carrying_capacity = matrix(100, 5, 5)
)
# Note that the input abundance is modified in-place
abu <- 10
res <- ricker_reproduction_model(
abundance = abu,
reproduction_rate = 0.25,
carrying_capacity = 100
)
stopifnot(identical(abu, res))
Run the code above in your browser using DataLab