reconcile.fossils.taxonomy: Reconcile existing fossil and taxonomy objects

Description Usage Arguments Value Examples

View source: R/reconcile.fossils.taxonomy.R

Description

This function uses edge identifiers (edge) and fossil sampling times (hmin) to reassign fossil species identifiers (sp, origin) using an existing taxonomy object. It can only be used if exact fossil sampling times are known (i.e. hmin = hmax), otherwise edges containing multiple species may be indistinguishable.

Usage

1

Arguments

fossils

Fossils object.

taxonomy

Taxonomy object.

Value

An object of class fossils.

Examples

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

# simulate fossils using the tree
rate = 2
f = sim.fossils.poisson(rate, tree = t)
plot(f, t)

# simulate fossils using taxonomy
s = sim.taxonomy(t, 0.5, 1, 0.5)
f = reconcile.fossils.taxonomy(f, s)
plot(f, t)

rachelwarnock/fossilsim documentation built on Oct. 27, 2019, 9:26 a.m.