check_daisie_mainland_data: Check if a 'daisie_mainland_data' is valid. Will stop if not.

View source: R/check_daisie_mainland_data.R

check_daisie_mainland_dataR Documentation

Check if a daisie_mainland_data is valid. Will stop if not.

Description

Check if a daisie_mainland_data is valid. Will stop if not.

Usage

check_daisie_mainland_data(daisie_mainland_data)

Arguments

daisie_mainland_data

list containing data of a DAISIE simulation with mainland dynamics, as produced by sim_island_with_mainland and checked by check_daisie_mainland_data

A daisie_mainland_data has two elements:

  • ideal_multi_daisie_data: the ideal data set produced in a simulation, see check_multi_daisie_data for more details

  • empirical_multi_daisie_data: the empirical data sets produced in a simulation see check_multi_daisie_data for more details

Value

nothing

Author(s)

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

Examples

daisie_mainland_data <- sim_island_with_mainland(
  total_time = 1,
  m = 100,
  island_pars = c(1, 1, 50, 0.1, 1),
  mainland_ex = 0.5,
  mainland_sample_prob = 1,
  mainland_sample_type = "complete",
  replicates = 1,
  verbose = FALSE
)
check_daisie_mainland_data(daisie_mainland_data)

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