sample_event: Samples what event to happen next on the island.

View source: R/sample_event.R

sample_eventR Documentation

Samples what event to happen next on the island.

Description

Samples what event to happen next on the island.

Usage

sample_event(rates)

Arguments

rates

named list of numeric rates as returned by calc_rates.

Value

numeric indicating what event will happen, or a supposed event that would happen in some timesteps of the ontogeny algorithm.

  1. immigration event

  2. extinction event

  3. cladogenesis event

  4. anagenesis event

Author(s)

Joshua W. Lambert


joshwlambert/DAISIEmainland documentation built on July 14, 2024, 5:40 p.m.