sample_mainland: Samples the mainland clade with the mainland sampling...

View source: R/sample_mainland.R

sample_mainlandR Documentation

Samples the mainland clade with the mainland sampling probability

Description

Samples the mainland clade with the mainland sampling probability

Usage

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

Arguments

total_time

Numeric defining the length of the simulation in time units.

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.

island_tbl

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

Value

A data frame

Author(s)

Joshua W. Lambert


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