CWRsimSPEC: Community Wide evolutionary Rescue simulation (CWR), with...

Description Usage Arguments Value Author(s) Examples

Description

Community Wide evolutionary Rescue simulation (CWR), with certain precise timepoints saved

Usage

1
2
CWRsimSPEC(tmax, b1, d1, b2, d2, m12, m21, k1, abun_original, interval,
  wantedtimes)

Arguments

tmax

Arbitrary units of time the simulation should be run

b1

Birthrate of the mutants

d1

Deathrate of the mutants

b2

Birthrate of the residents

d2

Death rate of the residents

m12

Mutation rate of mutants to residents

m21

Mutation rate of residents to mutants

k1

Carrying capacity

abun_original

A vector of initial abundances for each species such as those created by generate_spat_abund

interval

After how many evenst should the population state be saved to the output matrix

wantedtimes

The preciese timepoints that should be saved

Value

A matrix denoting the abundances of all the species in the community over time, with certain precise timpoints saved

Author(s)

Timo van Eldijk

Examples

1
2
3
CWRsimSPEC(10,0.6 , 0.1, 0.05, 0.1, 0, 0.0005, 16000,
generate_spat_abund(theta = 200,Ivec = rep(40,1),Jvec = c(16000)),
 200,c(15,30,50,75,100))

DeadParrot69/CWERNI documentation built on April 21, 2020, 3:10 a.m.