vecMultiDistUnlab: All pairwise D2 distances for a list of trees

Description Usage Arguments Value Examples

Description

All pairwise D2 distances for a list of trees

Usage

1
2
vecMultiDistUnlab(trees, listoflabels = NA, samesize = TRUE, eps = 0,
  nottips = FALSE)

Arguments

trees

A list of trees

listoflabels

Alternatively, a list of labels. If listoflabels is NA (the default), this function first computes the labels for the set of trees. If listoflabels is not NA, the labels are compared directly and the trees are ignored.

samesize

Logical: whether the trees are the same size

eps:

if the trees are not the same size (samesize=F), the components in the distance will be divided by the number of tips. Then eps*(difference in tip number) is added to preserve the metric property.

nottips:

exclude the number of 1s from the distance (default F)

Value

An object of class 'dist' containing tree-tree D2 distances (uses veclabeldistance)

Examples

1
dd=vecmultiDistUnlab(rmtree(10,12))

carolinecolijn/treetop documentation built on May 13, 2019, 12:50 p.m.