sim.tip.samples: Include extant and extinct tip samples in the fossil object,...

Description Usage Arguments Value Examples

View source: R/sim.tip.sampling.R

Description

Include extant and extinct tip samples in the fossil object, with optional rho sampling.

Usage

1
sim.tip.samples(fossils, tree, taxonomy = NULL, rho = 1)

Arguments

fossils

Fossils object.

tree

Phylo object.

taxonomy

Taxonomy object.

rho

Tip sampling probability.

Value

An object of class fossils containing extant or extinct tip samples equal to the age of the tips.

Examples

1
2
3
4
5
6
7
8
9
# simulate tree
t = ape::rtree(6)

# simulate fossils
f = sim.fossils.poisson(2, t)

# simulate tip samples
f = sim.tip.samples(f, t, rho = 0.5)
plot(f, t)

FossilSim documentation built on May 1, 2019, 10:52 p.m.