collect_files_pstr_crown_ages: Collects the tree crown_ages of all phylogenies belonging to...

Description Usage Arguments Value Examples

Description

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

Usage

1
collect_files_pstr_crown_ages(filenames, verbose = FALSE)

Arguments

filenames

names of the parameter file

verbose

shows progress if TRUE

Value

A data frame with filename, sti, ai, pi, si, crown_age

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
  filenames <- wiritttea::find_paths(
   c("toy_example_1.RDa", "toy_example_2.RDa",
   "toy_example_3.RDa", "toy_example_4.RDa")
 )
 df <- wiritttea::collect_files_pstr_crown_ages(filenames)
 testthat::expect_equal(
   names(df),
   c("filename", "sti", "ai", "pi", "si", "crown_age")
 )
 testthat::expect_true(nrow(df) == 220)

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