create_daisie_data: Converts simulation output into island output

View source: R/create_daisie_data.R

create_daisie_dataR Documentation

Converts simulation output into island output

Description

Converts simulation output into island output

Usage

create_daisie_data(
  total_time,
  island_tbl,
  mainland_clade,
  mainland_sample_prob,
  mainland_sample_type
)

Arguments

total_time

Numeric defining the length of the simulation in time units.

island_tbl

Data frame with current state of simulation containing number of species, see create_test_island_tbl()

mainland_clade

Data frame with state of mainland, see create_test_mainland_clade()

mainland_sample_prob

Numeric between zero and one determining the probability of an extant mainland species being sampled.

mainland_sample_type

String either "unsampled" for unsampled known species on the mainland, "undiscovered" for undiscovered species on the mainland, or "complete" if the mainland sampling probability is one.

Value

List with the island information, composed of branching times of extant species, status of species on the island and number of missing species.

Author(s)

Joshua W. Lambert


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