Learn R Programming

FossilSim (version 2.4.1)

SAtree: Tree with sampled ancestors represented as zero-length edges

Description

Converts a phylo object to SAtree, without modification of tip labels.

Usage

SAtree(tree, complete = TRUE)

Arguments

tree

Phylo object.

complete

Whether the tree is complete. Default TRUE. If the tree is not complete, then all fossil tips correspond to fossil samples, otherwise only sampled ancestors are considered samples.