collect_file_posterior_nltts: Collect the nLTT values of the BEAST2 posteriors

Description Usage Arguments Value Author(s) Examples

Description

Collect the nLTT values of the BEAST2 posteriors

Usage

1

Arguments

filename

name of the file containing the parameters and results

Value

a data frame with columns 'sti' (species tree index), 'ai' (alignment index), 'pi' (posterior index), 'si' (posterior state index) and 'nltt' (normalized Lineages Through Time statistic).

Author(s)

Richel Bilderbeek

Examples

1
2
3
4
5
6
  filename <- wiritttea::find_path("toy_example_3.RDa")
   df <- wiritttea::collect_file_posterior_nltts(filename)
   testthat::expect_equal(names(df),
     c("sti", "ai", "pi", "si", "nltt")
   )
   testthat::expect_true(nrow(df) == 80)

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