Learn R Programming

TreeTools (version 1.12.0)

NTip: Number of leaves in a phylogenetic tree

Description

NTip() extends ape::Ntip() to handle objects of class Splits and list, and edge matrices (equivalent to tree$edge).

Usage

NTip(phy)

# S3 method for default NTip(phy)

# S3 method for Splits NTip(phy)

# S3 method for list NTip(phy)

# S3 method for phylo NTip(phy)

# S3 method for multiPhylo NTip(phy)

# S3 method for phyDat NTip(phy)

# S3 method for matrix NTip(phy)

Value

NTip() returns an integer specifying the number of tips in each object in phy.

Arguments

phy

Object representing one or more phylogenetic trees.

See Also

Other tree properties: ConsensusWithout(), MatchEdges(), NSplits(), NodeNumbers(), PathLengths(), SplitsInBinaryTree(), TipLabels(), TreeIsRooted()

Other Splits operations: LabelSplits(), NSplits(), PolarizeSplits(), SplitFrequency(), Splits, SplitsInBinaryTree(), TipLabels(), TipsInSplits(), match.Splits, xor()