Learn R Programming

ibm (version 0.3.0)

ibm-package: Individual based models in R

Description

Implementation of some (simple) Individual Based Models and methods to create new ones, particularly for population dynamics models (reproduction, mortality and movement). The basic operations for the simulations are implemented in Rcpp for speed.

Arguments

Author

Ricardo Oliveros-Ramos <ricardo.oliveros@gmail.com>

Examples

Run this code
if (FALSE) {
set.seed(880820)
par = list(alpha=5e-4, beta=5e-4, r=0.1, m=0.05, D=list(N=8e-5, P=8e-5), 
L=list(N=0.2, P=0.2))
N0 = with(par, m/(2*beta*L$P))
P0 = with(par, r/(2*alpha*L$N))
par$initial = list(N=round(N0), P=round(P0))
sim = localLotkaVolterra(par, T=240, replicates=100, maxpop = 1e4)
plot(sim)
} 

Run the code above in your browser using DataLab