TreeTools (version 0.1.3)

MatrixToPhyDat: Matrix to phyDat

Description

Converts a matrix of tokens to a phyDat object.

Usage

MatrixToPhyDat(tokens)

PhyDatToMatrix(dataset)

Arguments

tokens

matrix of tokens, probably created with ReadCharacters or ReadTntCharacters. Row names should correspond to tip labels; column names may optionally correspond to character labels.

dataset

A dataset of class phyDat.

Value

an object of class phyDat.

A matrix corresponding to the uncompressed character states within a phyDat object.

Functions

  • PhyDatToMatrix: Converts a phyDat object to a matrix of tokens.