Description Usage Arguments Value Author(s) Examples
Collects the number of taxa of all phylogenies in the melted/uncast/long form
1 | collect_n_taxa(phylogenies)
|
phylogenies |
the phylogenies, supplied as either a list or a multiPhylo object, where the phylogenies are of type 'phylo' |
A dataframe of the number of taxa of each phylogeny in time
Richel Bilderbeek
1 2 3 4 | phylogenies <- c(ape::rcoal(10), ape::rcoal(20))
df <- collect_n_taxa(phylogenies)
testit::assert(names(df) == c("n_taxa"))
testit::assert(df == data.frame(n_taxa = c(10, 20)))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.