sim_mainland | R Documentation |
Simulates mainland extinction as a species-level moran process with species extinction immediately replaced via the speciation of an exisiting mainland species.
sim_mainland(total_time, m, mainland_ex)
total_time |
Numeric defining the length of the simulation in time units. |
m |
Numeric defining the size of mainland pool. |
mainland_ex |
Numeric parameter for mainland extinction rate. |
a list where each element is a mainland clade. Each element of the list is a data frame with nine columns. The columns contain:
Species identity (spec_id)
Mainland ancestor identity (main_anc_id)
Species type (spec_type)
Branching code (branch_code)
Branching time (forwards in time from the start of the simulation) (branch_t)
Species origination time (spec_origin_t)
Species extinction time (spec_ex_t)
Joshua W. Lambert
## Simulate mainland for 1 million years with a size of 100 species and a
## mainland extinction rate of 1 (SpMy^-1).
set.seed(
1,
kind = "Mersenne-Twister",
normal.kind = "Inversion",
sample.kind = "Rejection"
)
mainland <- sim_mainland(
total_time = 1,
m = 100,
mainland_ex = 1
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.