Learn R Programming

BioGeoBEARS (version 0.2.1)

chainsaw2: Saw a tree off at a particular time before present

Description

This function chops a tree like a hedge-trimmer, cutting straight across at a particular timepoint. The pieces are returned, as is the leftover tree, with branches shortened appropriately. Pieces that are mini-trees are returned as ape objects, whereas single branches are just lengths.

Usage

chainsaw2(tr, timepoint = 10, return_pieces = TRUE)

Arguments

tr
An ape phylo object.
timepoint
The time at which the tree should be "chopped".
return_pieces
Default TRUE, which means pieces should be returned

Value

chainsaw_result (a list object with the pieces) or tree_to_chainsaw, just the leftover tree

Details

This function is used during stratification, but could have other uses as well.

References

http://phylo.wikidot.com/matzke-2013-international-biogeography-society-poster

Matzke_2012_IBS

See Also

section_the_tree

Examples

Run this code
test=1

Run the code above in your browser using DataLab