sim_island | R Documentation |
Simulates the island given rates and a mainland clade
sim_island(
total_time,
island_pars,
mainland_clade,
mainland_sample_prob,
mainland_sample_type
)
total_time |
Numeric defining the length of the simulation in time units. |
island_pars |
A numeric vector containing the parameters for the island:
|
mainland_clade |
Data frame with state of mainland, see
|
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. |
A list of two elements. The first element is ideal_island
,
and the second element is empirical_island
. Within each of these
is a list containing 3 components:
$branching_times
: island age and stem age of the
population/species in the case of Non-endemic, Non-endemic_MaxAge and
Endemic anagenetic species.
For cladogenetic species these should be island age and branching times of the radiation including the stem age of the radiation.
$stac
: An integer ranging from 1 to 6
indicating the status of the colonist:
Non_endemic_MaxAge
Endemic
Endemic&Non_Endemic
Non_endemic
Endemic_singleton_MaxAge
Endemic_clade_MaxAge
$missing_species
: number of island species that were
not sampled for particular clade (only applicable for endemic clades)
Joshua W. Lambert
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.