View source: R/tree_properties.R
SplitsInBinaryTree | R Documentation |
SplitsInBinaryTree()
is a convenience function to calculate the number of
splits in a fully-resolved (binary) tree with n leaves.
SplitsInBinaryTree(tree)
## S3 method for class 'list'
SplitsInBinaryTree(tree)
## S3 method for class 'multiPhylo'
SplitsInBinaryTree(tree)
## S3 method for class 'numeric'
SplitsInBinaryTree(tree)
## S3 method for class ''NULL''
SplitsInBinaryTree(tree)
## Default S3 method:
SplitsInBinaryTree(tree)
## S3 method for class 'Splits'
SplitsInBinaryTree(tree)
## S3 method for class 'phylo'
SplitsInBinaryTree(tree)
tree |
An object of a supported format that represents a tree or set of trees, from which the number of leaves will be calculated. |
SplitsInBinaryTree()
returns an integer vector detailing the number
of unique non-trivial splits in a binary tree with n leaves.
Martin R. Smith (martin.smith@durham.ac.uk)
Other tree properties:
ConsensusWithout()
,
MatchEdges()
,
NSplits()
,
NTip()
,
NodeNumbers()
,
PathLengths()
,
TipLabels()
,
TreeIsRooted()
Other Splits operations:
LabelSplits()
,
NSplits()
,
NTip()
,
PolarizeSplits()
,
SplitFrequency()
,
Splits
,
TipLabels()
,
TipsInSplits()
,
match.Splits
,
xor()
tree <- BalancedTree(8)
SplitsInBinaryTree(tree)
SplitsInBinaryTree(as.Splits(tree))
SplitsInBinaryTree(8)
SplitsInBinaryTree(list(tree, tree))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.