TreeTools (version 0.1.3)

Subsplit: Subset of a split on fewer taxa

Description

Subset of a split on fewer taxa

Usage

Subsplit(splits, tips, keepAll = FALSE, unique = TRUE)

Arguments

splits

An object of class Splits.

tips

A vector specifying a subset of the tip labels applied to split.

keepAll

logical specifying whether to keep entries that define trivial splits (i.e. splits of zero or one tip) on the subset of tips.

unique

logical specifying whether to remove duplicate splits.

Value

An object of class Splits, defined on tips.

See Also

Other split manipulation functions: TrivialSplits

Examples

Run this code
# NOT RUN {
splits <- as.Splits(PectinateTree(letters[1:9]))
efgh <- Subsplit(splits, tips = letters[5:8], keepAll = TRUE)
summary(efgh)

TrivialSplits(efgh)

Subsplit(splits, tips = letters[5:8], keepAll = FALSE)


# }

Run the code above in your browser using DataLab