subsample.fossils.oldest.and.youngest | R Documentation |
Obtain a subsample of fossil occurrences containing the oldest and youngest fossil sample found at each node of the tree.
subsample.fossils.oldest.and.youngest(fossils, tree, complete = TRUE)
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 and youngest sample from each clade in the complete tree is returned, if FALSE the oldest and youngest sample from each clade in the extant only counterpart tree is returned. |
an object of class "fossils" containing the subsampled fossil occurrences.
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.and.youngest(f, t, complete = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.