check_island_tbl: Check if an 'island_tbl' is valid.

View source: R/check_island_tbl.R

check_island_tblR Documentation

Check if an island_tbl is valid.

Description

Check if an island_tbl is valid. Will stop if not.

Usage

check_island_tbl(island_tbl)

Arguments

island_tbl

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

Value

nothing

Author(s)

Richèl J.C. Bilderbeek, Joshua W. Lambert

Examples

set.seed(
  2,
  kind = "Mersenne-Twister",
  normal.kind = "Inversion",
  sample.kind = "Rejection"
)
mainland_clade <- DAISIEmainland:::create_test_mainland_clade(
  mainland_scenario = 2
)
island_tbl <- DAISIEmainland:::sim_island(
  total_time = 1,
  island_pars = c(1, 1, 10, 1, 1),
  mainland = mainland_clade,
  mainland_sample_prob = 1,
  mainland_sample_type = "complete"
)

check_island_tbl(island_tbl)

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