Description Usage Arguments Details Value Note Author(s) References See Also Examples
View source: R/BioGeoBEARS_stratified_v1.R
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.
1 |
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 |
This function is used during stratification, but could have other uses as well.
chainsaw_result
(a list object with the pieces) or
tree_to_chainsaw
, just the leftover tree
Go BEARS!
Nicholas J. Matzke matzke@berkeley.edu
http://phylo.wikidot.com/matzke-2013-international-biogeography-society-poster
Matzke_2012_IBS
1 | test=1
|
Loading required package: rexpokit
Loading required package: SparseM
Attaching package: 'SparseM'
The following object is masked from 'package:base':
backsolve
Loading required package: Rcpp
Loading required package: cladoRcpp
Loading required package: ape
Loading required package: phylobase
Attaching package: 'phylobase'
The following object is masked from 'package:ape':
edges
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.