DiscreteMatrix: Discrete character matrix

DiscreteMatrixR Documentation

Discrete character matrix

Description

DiscreteMatrix is an R6 class that contains a discrete character matrix and functions for modifying character activity and ordering.

Super class

nitro::AbstractCharacterMatrix -> DiscreteMatrix

Active bindings

data_type

The type of discrete character data contained in the matrix.

n_states

The number of unique states contained in the matrix.

symbols

The unique set of discrete characters contained in the matrix.

ordered

A numeric vector indicating which characters to mark as ordered.

Methods

Public methods


Method new()

Usage
DiscreteMatrix$new(data, ordered = NULL, inactive = NULL)
Arguments
data

A phyDat discrete character matrix.

ordered

A numeric vector indicating which characters to mark as ordered.

inactive

A numeric vector indicating which characters to mark as inactive.


Method print()

Usage
DiscreteMatrix$print(...)
Arguments
...

Ignored.


Method queue()

Generate the command queue

Usage
DiscreteMatrix$queue(...)
Arguments
...

Ignored.


Method clone()

The objects of this class are cloneable with this method.

Usage
DiscreteMatrix$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


paravian/nitro documentation built on Jan. 17, 2025, 11:21 p.m.