create_non_empty_island: Creates an ideal and empirical data set for a single non...

View source: R/create_non_empty_island.R

create_non_empty_islandR Documentation

Creates an ideal and empirical data set for a single non empty island

Description

Creates an ideal and empirical data set for a single non empty island

Usage

create_non_empty_island(
  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.