edgeLengthTable: edgeLengthTable

View source: R/edgeLengthTable.R

edgeLengthTableR Documentation

edgeLengthTable

Description

This function creates an edge length table showing the two connecting nodes to the edge

Usage

edgeLengthTable(tree = NULL, tips = FALSE)

Arguments

tree

phylogenetic tree from ape read.tree in phylo format

tips

whether to include the tip edges or not

Value

a data.frame is returned with the columns: "edge" = edge number; "node1" = ancestral node; and "node2" = descendent node. Node that node1 can be repeated because many descendents could have 1 ancestor.

Examples


your.tree = ape::read.tree(file = "file-path-to-tree.tre")
edge.table = edgeLengthTable(tree = your.tree, tips = TRUE)


chutter/AstralPlane documentation built on Aug. 29, 2024, 5:21 p.m.