collect_file_nltts: Collects the nLTTs of all phylogenies belonging to a...

Description Usage Arguments Value Examples

Description

Collects the nLTTs of all phylogenies belonging to a parameter file in the melted/uncast/long form

Usage

1
collect_file_nltts(filename, dt = 0.001)

Arguments

filename

name of the parameter file

dt

the resolution of the nLTT plot, must be in range <0,1>, default is 0.001

Value

A dataframe of gamma statistics of each phylogeny in time

Examples

1
2
3
4
5
6
7
8
9
  dt <- 0.1
  filename <- find_path("toy_example_3.RDa")
  df <- collect_file_nltts(filename)
  testit::assert(names(df) == c("species_tree_nltts", "posterior_nltts"))
  testit::assert(names(df$species_tree_nltts)
    == c("sti", "t", "nltt")
  )
  testit::assert(nrow(df$species_tree_nltts) > 2)
  testit::assert(nrow(df$posterior_nltts) == 80)

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