subsample.fossils.uniform: Obtain a uniform random sample of fossil occurrences.

View source: R/subsampling.R

subsample.fossils.uniformR Documentation

Obtain a uniform random sample of fossil occurrences.

Description

Obtain a uniform random sample of fossil occurrences.

Usage

subsample.fossils.uniform(fossils, proportion)

Arguments

fossils

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

proportion

the proportion of all fossil samples to return in the subsample.

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.uniform(f, 0.5)

FossilSim documentation built on April 19, 2022, 5:09 p.m.