Learn R Programming

phylobase (version 0.8.12)

nTips: nTips, nNodes, nEdges

Description

Number of tips, nodes and edges found in a tree.

Usage

nTips(x)

# S4 method for phylo4 nTips(x)

# S4 method for phylo nTips(x)

nNodes(x)

# S4 method for phylo4 nNodes(x)

nEdges(x)

# S4 method for phylo4 nEdges(x)

Value

a numeric vector indicating the number of tips, nodes or edge respectively.

Arguments

x

a phylo4 or phylo4d object

Details

Function to return the number of tips, nodes and edges found in a tree in the phylo4 or phylo4d format.