Learn R Programming

coala (version 0.3.0)

sumstat_trees: Returns ancestral tress in NEWICK format from simulations

Description

Returns ancestral tress in NEWICK format from simulations

Usage

sumstat_trees(name = "trees")

Arguments

name
The name of the summary statistic. When simulating a model, the value of the statistics are written to an entry of the returned list with this name. Summary statistic names must be unique in a model.

Examples

Run this code
set.seed(175)
model <- coal_model(4, 2) + sumstat_trees()
stats <- simulate(model)
print(stats$trees)

Run the code above in your browser using DataLab