Skip to contents

Count the number of trees in a .trees file

Usage

count_trees_in_file(trees_filename)

Arguments

trees_filename

name of a BEAST2 posterior .trees file, as can be read using parse_beast_trees

Value

the number of trees

See also

if the .trees file is invalid, use is_trees_file with verbose = TRUE for the reason

Author

Richèl J.C. Bilderbeek