SampleTrees {evobiR}R Documentation

Select a random sample of trees

Description

This function takes as its input a large collection of trees from a program like MrBayes or Beast and allows the user to select the number of randomly drawn trees they wish to retrieve

Usage

SampleTrees(trees, burnin, final.number, format, prefix)

Arguments

trees

a nexus format file containing trees that the user wants to sample from

burnin

the proportion of trees to remove as burnin

final.number

the number of trees desired

format

options are "new" or "nex" indicating to save the trees in newick format or nexus format

prefix

a text string to assing to the new treefile name

Value

an object of the class "multiPhylo" is returned

Author(s)

Heath Blackmon

References

http://coleoguy.github.io/

Examples

SampleTrees(trees = system.file("trees.nex", package = "evobiR"), 
            burnin = .1, final.number = 20, format = 'new', prefix = 'sample')

[Package evobiR version 1.1 Index]