check_mainland_clade: Check if an 'mainland_clade' is valid.

View source: R/check_mainland_clade.R

check_mainland_cladeR Documentation

Check if an mainland_clade is valid.

Description

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

Usage

check_mainland_clade(mainland_clade)

Arguments

mainland_clade

Data frame with state of mainland, see create_test_mainland_clade()

Value

nothing

Author(s)

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

Examples

set.seed(
  2,
  kind = "Mersenne-Twister",
  normal.kind = "Inversion",
  sample.kind = "Rejection"
)

multi_mainland_clade <- DAISIEmainland::sim_mainland(
  total_time = 1,
  m = 2,
  mainland_ex = 1
)

mainland_clade <- multi_mainland_clade[[1]]
check_mainland_clade(mainland_clade)

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