Description Usage Format Examples
This example is a simple population genetic model programmed using individual based simulation. The inspiration is the example of the Peppered moth textbook story (https://en.wikipedia.org/wiki/Peppered_moth_evolution). Check examples for usage.
1 2 3 4 5 6 7 |
An object of class R6ClassGenerator
of length 24.
1 2 3 4 5 6 7 8 | simu <- Simulation$new(years = 200, N = 500, mutation_rate = 1e-2, period = 50) ## intialisation
simu$output
simu$run() ## run simulations
simu$plot() ## plot simulations
## Not run:
simu$profile() ## profile the code
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.