NSplits()
counts the unique bipartition splits in a tree or object.
NSplits(x)NPartitions(x)
# S3 method for phylo
NSplits(x)
# S3 method for list
NSplits(x)
# S3 method for multiPhylo
NSplits(x)
# S3 method for Splits
NSplits(x)
# S3 method for numeric
NSplits(x)
# S3 method for `NULL`
NSplits(x)
# S3 method for ClusterTable
NSplits(x)
# S3 method for character
NSplits(x)
NSplits()
returns an integer specifying the number of bipartitions in
the specified objects, or in a binary tree with x
tips.
A phylogenetic tree of class phylo
; a list of such trees
(of class list
or multiPhylo
); a Splits
object;
a vector of integers; or a character vector listing tips of a tree,
or a character of length one specifying a tree in Newick format.
Martin R. Smith (martin.smith@durham.ac.uk)
Other tree properties:
ConsensusWithout()
,
NTip()
,
PathLengths()
,
SplitsInBinaryTree()
,
TipLabels()
,
TreeIsRooted()
Other Splits operations:
LabelSplits()
,
NTip()
,
PolarizeSplits()
,
SplitFrequency()
,
SplitsInBinaryTree()
,
Splits
,
TipLabels()
,
TipsInSplits()
,
match.Splits
,
xor()
NSplits(8L)
NSplits(PectinateTree(8))
NSplits(as.Splits(BalancedTree(8)))
Run the code above in your browser using DataLab