sample_trees: Sample trees from a file containing multiple trees. Usually...

View source: R/uncertainty.R

sample_treesR 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.


datelife documentation built on July 10, 2023, 2:02 a.m.