Learn R Programming

FossilSim (version 2.4.1)

sim.cryptic.species: Simulate cryptic species on a taxonomy object

Description

Simulate cryptic species on a taxonomy object

Usage

sim.cryptic.species(species, kappa)

Value

An object of class taxonomy. Note the origin or root can not be cryptic.

Arguments

species

Taxonomy object.

kappa

Probability that speciation event is cryptic.

See Also

taxonomy

Examples

Run this code
t = ape::rtree(10)
sp = sim.taxonomy(t, 1)
sim.cryptic.species(sp, 0.5)

Run the code above in your browser using DataLab