collect_n_taxa: Collects the number of taxa of all phylogenies in the...

Description Usage Arguments Value Author(s) Examples

Description

Collects the number of taxa of all phylogenies in the melted/uncast/long form

Usage

1
collect_n_taxa(phylogenies)

Arguments

phylogenies

the phylogenies, supplied as either a list or a multiPhylo object, where the phylogenies are of type 'phylo'

Value

A dataframe of the number of taxa of each phylogeny in time

Author(s)

Richel Bilderbeek

Examples

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)))

richelbilderbeek/wiritttea documentation built on May 27, 2019, 8:02 a.m.