Learn R Programming

TreeSearch (version 0.3.2)

PhyToString: Extract character data from a phyDat object as a string

Description

Extract character data from a phyDat object as a string

Usage

PhyToString(phy, ps = "", useIndex = TRUE, byTaxon = TRUE,
  concatenate = TRUE)

Arguments

phy

An object of class phyDat

ps

Character specifying text, perhaps ';', to append to the end of the string

useIndex

(default: TRUE) Print duplicate characters multiple times, as they appeared in the original matrix

byTaxon

If TRUE, write one taxon followed by the next. If FALSE, write one character followed by the next.

concatenate

Logical specifying whether to concatenate all characters/taxa into a single string, or to return a separate string for each entry.