are_trait_pars: Test if list has trait state parameters

View source: R/DAISIE_check_format.R

are_trait_parsR Documentation

Test if list has trait state parameters

Description

Test if list has trait state parameters

Usage

are_trait_pars(trait_pars)

Arguments

trait_pars

A named list containing diversification rates considering two trait states created by create_trait_pars:

  • [1]:A numeric with the per capita transition rate with state1

  • [2]:A numeric with the per capita immigration rate with state2

  • [3]:A numeric with the per capita extinction rate with state2

  • [4]:A numeric with the per capita anagenesis rate with state2

  • [5]:A numeric with the per capita cladogenesis rate with state2

  • [6]:A numeric with the per capita transition rate with state2

  • [7]:A numeric with the number of species with trait state 2 on mainland

Value

Boolean that indicates if list conforms to expected area parameters as created by create_trait_pars

Examples

testit::assert(DAISIE:::are_trait_pars(
  create_trait_pars(
    trans_rate = 0.5,
    immig_rate2 = 0.1,
    ext_rate2 = 0.2,
    ana_rate2 = 0.3,
    clado_rate2 = 0.4,
    trans_rate2 = 0.5,
    M2 = 1000)) == TRUE)

DAISIE documentation built on June 2, 2022, 5:07 p.m.