Learn R Programming

TreeTools (version 1.16.1)

TopologyOnly: Remove metadata from trees

Description

TopologyOnly() removes all information from trees except for their topologies and leaf labels.

Usage

TopologyOnly(tree)

Value

Returns tree, with each tree in Preorder, with edge lengths, node labels and other attributes removed.

Arguments

tree

A tree of class phylo.