View source: R/SplitFunctions.R
Subsplit | R Documentation |
Subsplit()
removes leaves from a Splits
object.
Subsplit(splits, tips, keepAll = FALSE, unique = TRUE)
splits |
An object of class |
tips |
A vector specifying a subset of the leaf labels applied to |
keepAll |
logical specifying whether to keep entries that define trivial splits (i.e. splits of zero or one leaf) on the subset of leaves. |
unique |
logical specifying whether to remove duplicate splits. |
Subsplit()
returns an object of class Splits
, defined on the
leaves tips
.
Martin R. Smith (martin.smith@durham.ac.uk)
KeepTip()
is a less flexible but faster equivalent.
Other split manipulation functions:
DropTip()
,
TrivialSplits()
splits <- as.Splits(PectinateTree(letters[1:9]))
splits
efgh <- Subsplit(splits, tips = letters[5:8], keepAll = TRUE)
summary(efgh)
TrivialSplits(efgh)
summary(Subsplit(splits, tips = letters[5:8], keepAll = FALSE))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.