collect_file_pstr_crown_ages: Collect the crown ages of the BEAST2 posteriors

Description Usage Arguments Value Note Author(s) Examples

Description

Collect the crown ages of the BEAST2 posteriors

Usage

1

Arguments

filename

name of the file containing the parameters and results

Value

a data frame

Note

BEAST2 calls this parameter 'TreeHeight'

Author(s)

Richel Bilderbeek

Examples

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

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