sample_trees {datelife} | R Documentation |
Sample trees from a file containing multiple trees. Usually from a bayesian analysis output trees file.
Description
Sample trees from a file containing multiple trees. Usually from a bayesian analysis output trees file.
Usage
sample_trees(trees_file, trees_object = NULL, burnin = 0.25, size = 100)
Arguments
trees_file |
A character vector indicating the name and directory of file with trees to sample. |
trees_object |
An R object containing a list of trees already read into R from a tree file from a bayesian analysis output. |
burnin |
A numeric vector indicating the burnin fraction. It should be a number between 0 and 1. Default to 0.25 |
size |
A numeric vector indicating the number of samples to be generated. |
Value
A multiPhylo
object with a random sample of trees.
[Package datelife version 0.6.8 Index]