create_trait_state_params: Create named list of trait state parameters

Description Usage Arguments Value Examples

View source: R/create_trait_state_params.R

Description

Create named list of trait state parameters

Usage

1
2
create_trait_state_params(trans_rate, immig_rate2, ext_rate2, ana_rate2,
  clado_rate2, trans_rate2, K2, M2)

Arguments

trans_rate

A numeric with the per capita transition rate with state1

immig_rate2

A numeric with the per capita immigration rate with state2

ext_rate2

A numeric with the per capita extinction rate with state2

ana_rate2

A numeric with the per capita anagenesis rate with state2

clado_rate2

A numeric with the per capita cladogenesis rate with state2

trans_rate2

A numeric with the per capita transition rate with state2

M2

A numeric with the number of species with trait state 2 on mainland

Value

list of numerical values containing trait state parameters

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
testit::assert(DAISIE:::are_trait_state_params(
  create_trait_state_params(
    trans_rate = 0.5,
    immig_rate2 = 0.1,
    ext_rate2 = 0.2,
    ana_rate2 = 0.3,
    clado_rate2 = 0.4,
    trans_rate2 = 0.5,
    K2 = 20,
    M2 = 1000)) == TRUE)

xieshu95/Trait_dependent_TraiSIE documentation built on Nov. 22, 2019, 7:51 a.m.