TreeTools (version 0.1.3)

TipLabels: Extract tip labels

Description

Extracts tip labels from an object. If the object is a single integer, TipLabels will return a vector t1, t2 ... tn, to match the default of ape::rtree.

Usage

TipLabels(x, single = TRUE)

# S3 method for matrix TipLabels(x, single = TRUE)

# S3 method for phylo TipLabels(x, single = TRUE)

# S3 method for TreeNumber TipLabels(x, single = TRUE)

# S3 method for Splits TipLabels(x, single = TRUE)

# S3 method for list TipLabels(x, single = FALSE)

# S3 method for multiPhylo TipLabels(x, single = FALSE)

# S3 method for character TipLabels(x, single = TRUE)

# S3 method for numeric TipLabels(x, single = TRUE)

# S3 method for phyDat TipLabels(x, single = TRUE)

# S3 method for default TipLabels(x, single = TRUE)

Arguments

x

An object of a supported class (see Usage section).

single

Logical specifying whether to report the labels for the first object only (TRUE), or for each object in a list (FALSE).

Value

TipLabels returns a character vector listing the tip labels for the specified object.

See Also

Other Splits operations: NSplits, NTip, TipsInSplits, as.Splits, in.Splits, match.Splits