-
Notifications
You must be signed in to change notification settings - Fork 2
Calculating
Dom Bennett edited this page Jun 26, 2017
·
5 revisions
The treeman package comes with a few functions for calculating common tree statistics. These methods are all prefixed with calc* and can often be parallelized. Example calc methods include calculating the distances between trees, calculating the distance matrix between nodes and tips, calculating evolutionary distinctness.
# two random trees
t1 <- randTree(100)
t2 <- randTree(100)
# calculate robinson-foulds distance
rf_dst <- calcDstRF(t1, t2, nrmlsd=FALSE)
# calculate branch length distance
bld_dst <- calcDstBLD(t1, t2, nrmlsd=FALSE)For a full list of calc-methods see this page
Next page: Taxonyms