tree.distance: tree distance

tree.distanceR Documentation

tree distance

Description

This function calculates the distance between two trees. Two trees are pruned to have the same set of species.

Usage

tree.distance(tree1,tree2, method="RF", normalize=TRUE)

Arguments

tree1

a tree string

tree2

a tree string

method

RF: RF distance, SC: branch score distance

normalize

normalized by (2 * the number of internal branches)

Value

It calculates the distance of two trees.

Author(s)

Liang Liu

Examples

data(dat.unrootedtree)
tree.distance(dat.unrootedtree[1], dat.unrootedtree[2])

lliu1871/phybase documentation built on April 21, 2024, 3:16 a.m.