subsample.fossils.oldest: Obtain a subsample of fossil occurrences containing the...

View source: R/subsampling.R

subsample.fossils.oldestR Documentation

Obtain a subsample of fossil occurrences containing the oldest fossil sample in each node of the tree.

Description

Obtain a subsample of fossil occurrences containing the oldest fossil sample in each node of the tree.

Usage

subsample.fossils.oldest(fossils, tree, complete = TRUE)

Arguments

fossils

an object of class "fossils" that corresponds to fossil occurrences.

tree

an object of class "Phylo", representing the tree upon which the fossil occurrences were simulated.

complete

logical, if TRUE the oldest sample from each clade in the complete tree is returned, if FALSE the oldest sample from each clade in the extant only counterpart tree is returned.

Value

an object of class "fossils" containing the subsampled fossil occurrences.

Examples

t = TreeSim::sim.bd.taxa(10, 1, 0.1, 0.05)[[1]]
f = sim.fossils.poisson(0.1, t, root.edge = FALSE)
subsample.fossils.oldest(f, t, complete = FALSE)

FossilSim documentation built on Oct. 5, 2023, 5:08 p.m.