sample_trees: Function to sample trees from a file containing multiple...

Description Usage Arguments Value

View source: R/uncertainty.R

Description

Function to sample trees from a file containing multiple trees. Usually from a bayesian analysis output trees file.

Usage

1
2
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.


phylotastic/datelife documentation built on Jan. 22, 2019, 12:29 a.m.