DAISIE_calc_clade_imm_rate: Calculate the clade-wide immigration rate.

Description Usage Arguments Value Author(s) Examples

View source: R/DAISIE_rates.R

Description

Calculate the clade-wide immigration rate.

Usage

1
2
DAISIE_calc_clade_imm_rate(ps_imm_rate, n_island_species,
  n_mainland_species, carr_cap)

Arguments

ps_imm_rate

per species immigration rate

n_island_species

number of species in that clade on the island

n_mainland_species

number of species in that clade on the mainland

carr_cap

carrying capacity, number of species this clade will grow to

Value

the clade's immigration rate, which is at least zero. This rate will be zero if there are more species than the carrying capacity allows for

Author(s)

Richel J.C. Bilderbeek

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
  testit::assert(
    DAISIE_calc_clade_imm_rate(
      ps_imm_rate = 0.1,
      n_island_species = 5,
      n_mainland_species = 2,
      carr_cap = 10
    ) == 0.1
  )
  testit::assert(
    DAISIE_calc_clade_imm_rate(
      ps_imm_rate = 0.1,
      n_island_species = 5,
      n_mainland_species = 2,
      carr_cap = 1
    ) == 0.0
  )

xieshu95/Test-Trasie documentation built on Dec. 18, 2019, 7:34 a.m.