DAISIE_sim_update_state: Updates state of island given sampled event

Description Usage Arguments See Also

View source: R/DAISIE_sim_update_state.R

Description

Makes the event happen by updating island species matrix and species IDs. What event happens is determined by the sampling in the algorithm.

Usage

1
2
DAISIE_sim_update_state(timeval, totaltime, possible_event, maxspecID,
  mainland_spec, island_spec, stt_table, Tpars)

Arguments

timeval

current time of simulation

totaltime

simulated amount of time

possible_event

numeric indicating what event will happen.

maxspecID

current species IDs

mainland_spec

number of mainland species

island_spec

A matrix with species on island (state of system at each time point)

stt_table

A species-through-time table

Tpars

A named list containing diversification rates considering two trait states:

  • [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

See Also

DAISIE_sim_core


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