README.md

Project Status: Active – The project has reached a stable, usable state and is being actively developed. DOI

gameofclones

This R package simulates aphid–parasitoid eco-evolutionary dynamics.

Installation

To install this package:

remotes::install_github("lucasnell/gameofclones")

Package functions

Each exported function has its own documentation, but here are some basic descriptions of each:

Usage

With all the defaults, you could simulate a resistant and susceptible clone (with a cost for resistance) in two patches (only one with parasitoids) for 250 days with the following:

# set initial densities:
adults32 <- cbind(c(0,0,0,0,32), rep(0, 5))

line_s <- clonal_line("susceptible", adults32)
line_r <- clonal_line("resistant", adults32,
                      resistant = TRUE,
                      surv_juv_apterous = "low",
                      surv_adult_apterous = "low",
                      repro_apterous = "low")
sims <- sim_experiments(c(line_s, line_r))
print(sims)



lucasnell/clonewars documentation built on Oct. 12, 2023, 4:39 p.m.