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