TreeSearch (version 0.4.0)

TipsAreNames: Extract character data from dataset

Description

Specifies how characters are stored in a dataset object

Usage

TipsAreNames(dataset, tips)

TipsAreColumns(dataset, tips)

Arguments

dataset

a matrix or list containing symbols associated with each tip; for example, a dataset of class phyDat

tips

vector detailing the tips to be selected, whether as their names or numbers corresponding to their rows/columns

Value

an integer vector, listing the tokens associated with each character for each tip in turn - ready to send to FITCH or equivalent C routine

Functions

  • TipsAreColumns: use if each column in a matrix corresponds to a tip