update_states_mutual: Update states on the island

View source: R/update_states_mutual.R

update_states_mutualR Documentation

Update states on the island

Description

Update states on the island

Usage

update_states_mutual(
  M0,
  Mt,
  status_p,
  status_a,
  maxplantID,
  maxanimalID,
  timeval,
  total_time,
  rates,
  possible_event,
  island_spec,
  stt_table,
  transprob
)

Arguments

M0

Mainland matrix

Mt

Island matrix

status_p

Plant species status, with 1 present, 0 absent on island

status_a

Animal species status, with 1 present, 0 absent on island

maxplantID

Maximum plant species id on island

maxanimalID

Maximum animal species id on island

timeval

Time value during simulation, ranging from island age to the present

total_time

Island age (total simulation time)

rates

All kinds of rates

possible_event

Possible event that happening on island

island_spec

A data frame with species information on island

stt_table

A data frame with the number of species through time

transprob

A numerical

Value

A list


Yangshen0325/specmutual documentation built on Feb. 19, 2025, 10:36 p.m.